switch vim flavour to Neovim; reason: macOS clipboard support
access to system clipboard was broken in command-line vim, the buffers "+ or "* were said not to exist and neither unnamed or unnamedplus clipboard settings were working. Aliases nvim to "vim"
This commit is contained in:
parent
8a96154f43
commit
9a519e2eb5
|
@ -440,8 +440,9 @@ in
|
||||||
ipb = "ip --color --brief";
|
ipb = "ip --color --brief";
|
||||||
ll = "ls -l";
|
ll = "ls -l";
|
||||||
wavesynth = "nix-shell -p sox --run 'play -n synth brownnoise synth pinknoise mix synth 0 0 0 15 40 80 trapezium amod 0.2 20'";
|
wavesynth = "nix-shell -p sox --run 'play -n synth brownnoise synth pinknoise mix synth 0 0 0 15 40 80 trapezium amod 0.2 20'";
|
||||||
|
vim = "nvim";
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,8 @@
|
||||||
self: super:
|
self: super:
|
||||||
rec {
|
rec {
|
||||||
#jami-ring-daemon = super.qt5.callPackage ./ov/jami/ring-daemon.nix {};
|
#jami-ring-daemon = super.qt5.callPackage ./ov/jami/ring-daemon.nix {};
|
||||||
myVim = with super; (vim_configurable.override { python = python3; }).customize {
|
myVim = with super; neovim.override { configure = {
|
||||||
# executable/ package name
|
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||||
name = "vim";
|
|
||||||
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
|
|
||||||
# loaded on start
|
# loaded on start
|
||||||
start = [
|
start = [
|
||||||
ale
|
ale
|
||||||
|
@ -27,8 +25,8 @@
|
||||||
vim-jinja
|
vim-jinja
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
vimrcConfig.customRC = builtins.readFile ./vimrc;
|
customRC = builtins.readFile ./vimrc;
|
||||||
};
|
};};
|
||||||
# build with debug symbols and in debug mode (less optimized)
|
# build with debug symbols and in debug mode (less optimized)
|
||||||
opencvDebug = with super; enableDebugging ((opencv3.override { enablePython = true; enableGtk3 = true; enableDocs = true; pythonPackages = pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec { cmakeBuildType = "Debug"; }));
|
opencvDebug = with super; enableDebugging ((opencv3.override { enablePython = true; enableGtk3 = true; enableDocs = true; pythonPackages = pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec { cmakeBuildType = "Debug"; }));
|
||||||
#gnutls = super.callPackage ./ov/gnutls {inherit (super.darwin.apple_sdk.frameworks) Security;};
|
#gnutls = super.callPackage ./ov/gnutls {inherit (super.darwin.apple_sdk.frameworks) Security;};
|
||||||
|
|
11
home/vimrc
11
home/vimrc
|
@ -36,11 +36,8 @@ set incsearch
|
||||||
set autoindent
|
set autoindent
|
||||||
set history=1000
|
set history=1000
|
||||||
" set cursorline
|
" set cursorline
|
||||||
if has("unnamedplus")
|
" use system clipboard as default buffer
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamed
|
||||||
elseif has("clipboard")
|
|
||||||
set clipboard=unnamed
|
|
||||||
endif
|
|
||||||
|
|
||||||
" set expandtab
|
" set expandtab
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
@ -101,7 +98,7 @@ au FileType nix setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
|
||||||
set ofu=syntaxcomplete#Complete
|
set ofu=syntaxcomplete#Complete
|
||||||
" nmap <C-V> "+gP
|
" nmap <C-V> "+gP
|
||||||
" imap <C-V> <ESC><C-V>a
|
" imap <C-V> <ESC><C-V>a
|
||||||
vmap <C-C> "+y
|
"vmap <C-C> "+y
|
||||||
|
|
||||||
" ALE linter settings
|
" ALE linter settings
|
||||||
let g:ale_linters = { 'python': ['flake8'] }
|
let g:ale_linters = { 'python': ['flake8'] }
|
||||||
|
@ -109,4 +106,4 @@ let g:ale_linters = { 'python': ['flake8'] }
|
||||||
" vim-pandoc settings
|
" vim-pandoc settings
|
||||||
let g:pandoc#modules#disabled = ["spell"]
|
let g:pandoc#modules#disabled = ["spell"]
|
||||||
set textwidth=0
|
set textwidth=0
|
||||||
set wrapmargin=0
|
set wrapmargin=0
|
||||||
|
|
Loading…
Reference in a new issue