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
|
for additional in additionals
|
||||||
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
||||||
if filereadable(s:vimrc_path)
|
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
|
for additional in additionals
|
||||||
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
let s:vimrc_path = "/etc/vim/vimrc." . additional
|
||||||
if filereadable(s:vimrc_path)
|
if filereadable(s:vimrc_path)
|
||||||
|
|||||||
+1
-11
@@ -95,14 +95,4 @@ nmap ÿ <A-BS>
|
|||||||
imap ÿ <A-BS>
|
imap ÿ <A-BS>
|
||||||
tnoremap ÿ <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
|
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ function link_config_files {
|
|||||||
link_etc vim/vimrc.core
|
link_etc vim/vimrc.core
|
||||||
link_etc vim/vimrc.miaou
|
link_etc vim/vimrc.miaou
|
||||||
link_etc vim/vimrc.rookie
|
link_etc vim/vimrc.rookie
|
||||||
|
link_etc vim/vimrc.extra
|
||||||
|
|
||||||
if in_azerty_zone 2>/dev/null; then
|
if in_azerty_zone 2>/dev/null; then
|
||||||
link_etc vim/vimrc.azerty
|
link_etc vim/vimrc.azerty
|
||||||
|
|||||||
Reference in New Issue
Block a user