vimrc.extra
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
" EXTRA vim user
|
||||
" ---------------
|
||||
|
||||
" Highlight on Yank
|
||||
if has('nvim')
|
||||
" NVIM only features
|
||||
augroup highlight_yank
|
||||
autocmd!
|
||||
au TextYankPost * silent! lua vim.highlight.on_yank()
|
||||
augroup END
|
||||
else
|
||||
" VIM only features
|
||||
if isdirectory($VIMRUNTIME . '/pack/dist/opt/hlyank')
|
||||
packadd! hlyank
|
||||
endif
|
||||
endif
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
let additionals = [ "core", "miaou", "rookie" ]
|
||||
let additionals = [ "core", "miaou", "rookie", "extra" ]
|
||||
for additional in additionals
|
||||
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
||||
if filereadable(s:vimrc_path)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
let additionals = [ "core", "miaou", "rookie", "azerty" ]
|
||||
let additionals = [ "core", "miaou", "rookie", "extra", "azerty" ]
|
||||
for additional in additionals
|
||||
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
||||
if filereadable(s:vimrc_path)
|
||||
|
||||
+1
-11
@@ -95,14 +95,4 @@ nmap ÿ <A-BS>
|
||||
imap ÿ <A-BS>
|
||||
tnoremap ÿ <A-BS>
|
||||
|
||||
" Highlight on Yank
|
||||
if has('nvim')
|
||||
" NVIM only features
|
||||
augroup highlight_yank
|
||||
autocmd!
|
||||
au TextYankPost * silent! lua vim.highlight.on_yank()
|
||||
augroup END
|
||||
else
|
||||
" VIM only features
|
||||
packadd! hlyank
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user