summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-01-28 18:34:40 +0100
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-01-28 18:34:40 +0100
commit7599de7b7316f68e62920aa012347b5affb6a9e4 (patch)
treed94f1dbf04d0074b548d0182290e61f107064c38 /nvim
parent4da0e74aa2093a98e4bc7a083ada79ef82e02c22 (diff)
crazy vim tricks
Diffstat (limited to 'nvim')
-rw-r--r--nvim/nvim/ftplugin/markdown.vim2
-rw-r--r--nvim/nvim/ftplugin/netrw.vim1
-rw-r--r--nvim/nvim/init.vim15
3 files changed, 14 insertions, 4 deletions
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