From 7599de7b7316f68e62920aa012347b5affb6a9e4 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Mon, 28 Jan 2019 18:34:40 +0100 Subject: crazy vim tricks --- nvim/nvim/ftplugin/markdown.vim | 2 ++ nvim/nvim/ftplugin/netrw.vim | 1 + nvim/nvim/init.vim | 15 +++++++++++---- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 nvim/nvim/ftplugin/netrw.vim (limited to 'nvim') diff --git a/nvim/nvim/ftplugin/markdown.vim b/nvim/nvim/ftplugin/markdown.vim index fac588d..2a03e5e 100644 --- a/nvim/nvim/ftplugin/markdown.vim +++ b/nvim/nvim/ftplugin/markdown.vim @@ -9,3 +9,5 @@ augroup SENTENCES au! autocmd InsertCharPre * if &ft=='markdown' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif augroup END + +let g:markdown_folding=1 diff --git a/nvim/nvim/ftplugin/netrw.vim b/nvim/nvim/ftplugin/netrw.vim new file mode 100644 index 0000000..6f5fe3d --- /dev/null +++ b/nvim/nvim/ftplugin/netrw.vim @@ -0,0 +1 @@ +setlocal nolist diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim index bde3e35..2eb2689 100644 --- a/nvim/nvim/init.vim +++ b/nvim/nvim/init.vim @@ -47,6 +47,13 @@ set background=dark " Set default colorscheme but dark comments -> Torte colorscheme desert +" Highligh column and line +" set cursorcolumn +set cursorline +highlight CursorColumn ctermbg=DarkGrey guibg=#262626 +highlight CursorLine ctermbg=DarkGrey guibg=#262626 +highlight! link CursorColumn CursorLine + " Show trailing spaces set list lcs=trail:·,tab:»· @@ -58,11 +65,11 @@ set splitbelow set splitright " Explore configured to show tree -" don't use banner +" Use a banner " always open files in previous window -let g:netrw_liststyle = 3 -let g:netrw_banner = 0 -"let g:netrw_browse_split = 4 +let g:netrw_liststyle = 1 +let g:netrw_banner = 1 +let g:netrw_winsize = 75 " % of window by v or o operation " Mouse support set mouse=a -- cgit v1.2.3