b589ab9002c32cd2a86afc992550ece40c21ab8a
dblume Soften the status line colo...

dblume authored 6 months ago

1) " Version 2024-03-17.1 - status line color tweak
David Blume first commit

David Blume authored 8 years ago

2) set nocompatible    " Use Vim defaults, forget compatibility with vi.
3) set bs=2            " allow backspacing over everything in insert mode
4) set wildmenu        " Allows command-line completion with tab
5) set autoindent      " Copy indent from current line when starting a new line
6) set smartindent     " Do smart auto indenting when starting  new line
7) set smarttab        " Honor 'shiftwidth', 'tabstop' or 'softtabstop'
8) set hlsearch        " highlight all matches for previous search
dblume Better fold settings for zA

dblume authored 1 year ago

9) set foldlevel=99
David Blume first commit

David Blume authored 8 years ago

10) set nowrap          " no wrapping text lines on the screen (exceptions below)
11) set sidescroll=5
dblume May use nbsp in PS1; add it...

dblume authored 2 years ago

12) set listchars+=tab:>-,precedes:<,extends:>,nbsp:· " for :set list
dblume Add - as a word character

dblume authored 9 months ago

13) set iskeyword+=-    " Add - to list of non-word-breaking chars.
dblume Starting trial with vim 'in...

dblume authored 8 months ago

14) set incsearch       " Navigate to matched strings while typing. Toggle: :set is!
dblume Set scrolloff to 0, EC2 def...

dblume authored 7 months ago

15) set scrolloff=0     " EC2 defaults to 5. Set explicitly to be consistent
David Blume first commit

David Blume authored 8 years ago

16) 
17) if v:version >= 703
18)   " Do save the undo tree to file, but not in the local directory.
19)   " Don't forget to mkdir ~/.vim_undo
20)   set undodir=~/.vim_undo,.
21)   set undofile        " undo even after closing and reopening a file
22) endif
23) 
24) " The following two lines set the use of perl regex, aka "very magic"
25) nnoremap / /\v
26) vnoremap / /\v
27) 
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

28) " Make j and k move to the next row, not file line
29) nnoremap j gj
30) nnoremap k gk
31) 
32) " From Steve Losh: http://learnvimscriptthehardway.stevelosh.com/chapters/10.html
dblume Use j and k for navigating...

dblume authored 1 year ago

33) " Map jk to ESC in insert mode (except when navigating popup menu)
34) inoremap <expr> jk pumvisible() ? '' : '<esc>'
35) inoremap <expr> j pumvisible() ? '<Down>' : 'j'
36) inoremap <expr> k pumvisible() ? '<Up>' : 'k'
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

37) 
dblume Add easier window navigation.

dblume authored 2 years ago

38) " https://stevelosh.com/blog/2010/09/coming-home-to-vim/#s3-why-i-came-back-to-vim
39) nnoremap <leader>v <C-w>v<C-w>l
40) nnoremap <C-h> <C-w>h
41) nnoremap <C-j> <C-w>j
42) nnoremap <C-k> <C-w>k
43) nnoremap <C-l> <C-w>l
44) 
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

45) " clear search highlights
46) nnoremap <cr> :noh<cr><cr>
David Blume first commit

David Blume authored 8 years ago

47) 
dblume tab key navigation of buffers

dblume authored 1 year ago

48) " tab switches to previous/next buffer
49) nnoremap <Tab> :bp<cr>
50) nnoremap <S-Tab> :bn<cr>
51) 
dblume Remap Y to yank to end of l...

dblume authored 6 months ago

52) " Use yy to yank a whole line, use Y to yank to end of line like C and D
53) nnoremap Y y$
54) 
David Blume first commit

David Blume authored 8 years ago

55) syntax on
56) 
57) set t_Co=256
58) if v:version >= 703
59)   set colorcolumn=80
60) endif
61) if has('gui_running') " Didn't work: if &term != 'builtin_gui'
62)   " Light backgrounds for GUI experiences
63)   set background=light
64)   " colorscheme peaksea                        " install peaksea
65)   colorscheme tolerable                        " install tolerable
66)   if v:version >= 703
67)     highlight ColorColumn ctermbg=255 guibg=#F6F6F6
68)   endif
dblume nvim ColorColumn was inverted

dblume authored 6 months ago

69)   highlight statusline   ctermfg=17 ctermbg=Gray  " override scheme
70)   highlight statuslineNC ctermfg=20 ctermbg=LightGray  " override scheme
David Blume Specify a font for gvim on...

David Blume authored 4 years ago

71)   if has('win32')
72)     set guifont=DejaVu_Sans_Mono_for_Powerline:h10:cANSI:qDRAFT
73)   endif
David Blume first commit

David Blume authored 8 years ago

74)   set lines=50 columns=100
75) else
76)   " Dark backgrounds for tty experiences
77)   set background=dark
78)   colorscheme desert                           " install desert
79)   if v:version >= 703
David Blume Windows PuTTY shows ctermbg...

David Blume authored 6 years ago

80)     highlight ColorColumn ctermbg=233 guibg=Black " dark gray (or 17, dark blue)
David Blume first commit

David Blume authored 8 years ago

81)   endif
dblume Maybe I like these statusli...

dblume authored 10 months ago

82)   highlight statusline   ctermfg=24 ctermbg=250  " override scheme
dblume Soften the status line colo...

dblume authored 6 months ago

83)   highlight statuslineNC ctermfg=237 ctermbg=Gray  " override scheme
dblume Better statusline color.

dblume authored 2 years ago

84)   highlight MatchParen   term=reverse ctermbg=23  " 23 is more subtle than default
David Blume first commit

David Blume authored 8 years ago

85) endif
dblume Better statusline color.

dblume authored 2 years ago

86) 
dblume Soften the status line colo...

dblume authored 6 months ago

87) au InsertEnter * hi statusline guibg=Cyan ctermfg=26 guifg=Black ctermbg=248
dblume Maybe I like these statusli...

dblume authored 10 months ago

88) au InsertLeave * hi statusline term=bold,reverse cterm=bold,reverse ctermfg=24 ctermbg=250 guifg=black guibg=#c2bfa5
89) 
David Blume first commit

David Blume authored 8 years ago

90) " set mouse=v     " visual mode, not working great for PuTTY
91) 
92) set tags=tags;/
93) 
dblume Make vim StatuslineGit() re...

dblume authored 6 months ago

94) set history=500
dblume Update vim statusline to pr...

dblume authored 10 months ago

95) set laststatus=2
96) 
dblume Retrieve git branch only on...

dblume authored 6 months ago

97) function! GitBranch()
dblume Make vim StatuslineGit() re...

dblume authored 6 months ago

98)   let l:branchname = system("git -C " . expand('%:p:h') . " rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
dblume Make git branch fit on stat...

dblume authored 6 months ago

99)   return strlen(l:branchname) > 0 ? '  │ '.l:branchname : ''
dblume Update vim statusline to pr...

dblume authored 10 months ago

100) endfunction
101) 
dblume Only show encoding and form...

dblume authored 6 months ago

102) function! EncodingAndFormat()
103)   if (len(&fileencoding) && &fileencoding != 'utf-8') || &fileformat != 'unix'
104)     return &fileencoding?&fileencoding:&encoding .'['. &fileformat . '] │ '
105)   endif
106)   return ''
107) endfunction
108) 
dblume Default to mode() if not in...

dblume authored 9 months ago

109) function! Current_mode()
110)   let l:currentmode={
dblume Update vim statusline to pr...

dblume authored 10 months ago

111)     \ 'n'  : 'NORMAL',
112)     \ 'v'  : 'VISUAL',
113)     \ 'V'  : 'V·LINE',
114)     \ '' : 'V·BLOCK',
115)     \ 's'  : 'SELECT',
116)     \ 'S'  : 'S·LINE',
117)     \ 'i'  : 'INSERT',
dblume Default to mode() if not in...

dblume authored 9 months ago

118)     \ 'r'  : 'I·REPLACE',
dblume Update vim statusline to pr...

dblume authored 10 months ago

119)     \ 'R'  : 'REPLACE',
120)     \ 'Rv' : 'V·REPLACE',
121)     \ 'c'  : 'COMMAND',
122)     \}
dblume Default to mode() if not in...

dblume authored 9 months ago

123)     return get(l:currentmode, mode(), mode())
124) endfunction
dblume Update vim statusline to pr...

dblume authored 10 months ago

125) 
126) function! Trim_brackets(fn)
dblume Support older vim on raspi

dblume authored 10 months ago

127)   if v:version > 800
128)     return trim(a:fn, "[]")
129)   else
130)     return a:fn
131)   endif
dblume Update vim statusline to pr...

dblume authored 10 months ago

132) endfunction
133) 
dblume Default to mode() if not in...

dblume authored 9 months ago

134) set statusline=\ %{Current_mode()}
dblume Update vim statusline to pr...

dblume authored 10 months ago

135) set statusline+=%{&paste?'\ \ ·\ PASTE':''}
dblume Retrieve git branch only on...

dblume authored 6 months ago

136) set statusline+=%{b:git_branch}
dblume vimrc use box drawing vertical

dblume authored 8 months ago

137) set statusline+=\ │\ %f
dblume Default to mode() if not in...

dblume authored 9 months ago

138) set statusline+=%m
139) set statusline+=\ %r
140) set statusline+=\ %=
dblume Update vim statusline to pr...

dblume authored 10 months ago

141) set statusline+=%h
dblume Default to mode() if not in...

dblume authored 9 months ago

142) set statusline+=\ %{Trim_brackets(&filetype)}
143) set statusline+=\ %#StatusLineNC#
dblume Only show encoding and form...

dblume authored 6 months ago

144) set statusline+=\ %{b:enc_fmt}
145) set statusline+=%p%%\ of
dblume Drop column and line number...

dblume authored 6 months ago

146) set statusline+=\ %L\ 
David Blume first commit

David Blume authored 8 years ago

147) 
148) set encoding=utf-8
149) 
dblume No comments after key mappi...

dblume authored 1 year ago

150) " Fast saving
151) nmap <leader>w :w!<cr>
David Blume first commit

David Blume authored 8 years ago

152) " I use relative number for cursor movement.
153) nmap <leader>r :set relativenumber!<cr>
154) nmap <leader>n :set number!<cr>
155) 
156) " Useful mappings for managing tabs
dblume Remove bad vim mappings for...

dblume authored 2 years ago

157) " Tab Previous: gT or C-PageUp
158) " Tab Next: gt or C-PageDown
David Blume first commit

David Blume authored 8 years ago

159) nmap <leader>tn :tabnew
160) nmap <leader>to :tabonly<cr>
161) nmap <leader>tc :tabclose<cr>
162) nmap <leader>tm :tabmove
dblume Add shortcuts for tab selec...

dblume authored 2 years ago

163) nmap <leader>1 1gt
164) nmap <leader>2 2gt
165) nmap <leader>3 3gt
166) nmap <leader>4 4gt
167) nmap <leader>5 5gt
168) nmap <leader>6 6gt
169) nmap <leader>7 7gt
170) nmap <leader>8 8gt
171) nmap <leader>9 9gt
dblume Use <leader>o OpenCurrentAs...

dblume authored 2 years ago

172) 
173) " Open current buffer in new tab. Close with C-w,c
174) " https://vim.fandom.com/wiki/Maximize_window_and_return_to_previous_split_structure
175) function! OpenCurrentAsNewTab()
dblume Restore entire window view...

dblume authored 2 years ago

176)     let l:currentView = winsaveview()
dblume Use <leader>o OpenCurrentAs...

dblume authored 2 years ago

177)     tabedit %
dblume Restore entire window view...

dblume authored 2 years ago

178)     call winrestview(l:currentView)
dblume Use <leader>o OpenCurrentAs...

dblume authored 2 years ago

179) endfunction
180) nmap <leader>o :call OpenCurrentAsNewTab()<CR>
David Blume first commit

David Blume authored 8 years ago

181) 
182) " pastetoggle
183) nmap <leader>p :set invpaste paste?<cr>
184) 
David Blume Add mapping to paste onto n...

David Blume authored 6 years ago

185) " Control+p to paste onto next line
186) nmap <C-p> :pu<cr>
187) 
David Blume Will use netrw's Explore in...

David Blume authored 3 years ago

188) " Make netrw's Explore behave a little like NERDTreeToggle
189) " http://vimcasts.org/blog/2013/01/oil-and-vinegar-split-windows-and-project-drawer/
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

190) function! ToggleNetrw()
David Blume Improve the toggling of the...

David Blume authored 3 years ago

191)   if bufwinnr("NetrwTreeListing") > 0
192)     for i in range(1, bufnr("$"))
193)       if (getbufvar(i, "&filetype") == "netrw")
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

194)         silent exe "bwipeout " . i
David Blume Improve the toggling of the...

David Blume authored 3 years ago

195)         return
196)       endif
197)     endfor
198)   endif
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

199)   silent Vexplore %:p:h
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

200) endfunction
201) nmap <leader>e :call ToggleNetrw()<cr>
202) 
dblume No comments after key mappi...

dblume authored 1 year ago

203) " install taglist
204) let Tlist_GainFocus_On_ToggleOpen = 1  " Jump to taglist window on open
205) let Tlist_Exit_OnlyWindow = 1          " if you are the last, kill yourself
206) let Tlist_Close_On_Select = 1          " Close taglist window on select
207) nmap <leader>l :TlistToggle<cr>
208) 
209) " install vim-bbye
210) nmap <leader>bd :Bdelete<cr>
David Blume first commit

David Blume authored 8 years ago

211) 
212) " Visual mode mappings
213) """
214) 
215) " map sort function to a key
216) vnoremap <leader>s :sort<cr>
217) 
218) "easier moving of code blocks
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

219) vnoremap < <gv
220) vnoremap > >gv
David Blume first commit

David Blume authored 8 years ago

221) 
222) " If too many file system events are getting triggered.
223) set nobackup       " ~ files
224) set nowritebackup  " Don't write buff to temp, delete orig, rename temp to orig
225) set noswapfile     " .swp files
226) 
227) " Allow tags to open another buffer even if this one is modified
228) set hidden
229) 
230) " Switch between source and header files
231) function! SwitchSourceHeader()
232)   let s:ext  = expand("%:e")
233)   let s:base = expand("%:t:r")
234)   let s:cmd  = "find " . s:base
235)   if (s:ext == "cpp" || s:ext == "c")
236)     if findfile(s:base . ".h"  ) != "" | exe s:cmd . ".h"   | return | en
237)     if findfile(s:base . ".hpp") != "" | exe s:cmd . ".hpp" | return | en
238)   else
239)     if findfile(s:base . ".cpp") != "" | exe s:cmd . ".cpp" | return | en
240)     if findfile(s:base . ".c"  ) != "" | exe s:cmd . ".c"   | return | en
241)   endif
242) endfunc
243) 
244) " Demonstrates a way to look in a mirror directory
245) " function! OpenOther()
246) "    if expand("%:e") == "cpp"
247) "      exe "split" fnameescape(expand("%:p:r:s?src?include?").".h")
248) "    elseif expand("%:e") == "h"
249) "      exe "split" fnameescape(expand("%:p:r:s?include?src?").".cpp")
250) "    endif
251) " endfunc
252) 
253) " Delete trailing white space on save, useful for Python and CoffeeScript ;)
254) function! DeleteTrailingWS()
255)   exe "normal mz"
256)   %s/\s\+$//ge
257)   exe "normal `z"
258) endfunc
259) 
David Blume Add OpenInOtherWindow to .v...

David Blume authored 8 years ago

260) function! OpenInOtherWindow()
261)   if winnr('$') == 1
262)     exe "wincmd F"
263)   else
264)     let curNum = winnr()
265)     let oldBuf = bufnr( "%" )
266)     if curNum == 1
267)       let othNum = 2
268)     else
269)       let othNum = 1
270)     endif
271)     exe "normal! gF"
272)     let newBuf = bufnr( "%" )
273)     let newLine = line(".")
274)     exe 'hide buf' oldBuf
275)     exe othNum . "wincmd w"
276)     exe 'hide buf' newBuf
277)     exe "normal! " . newLine . "G"
278)   endif
279) endfunc
280) 
281) nmap <silent> <leader>F :call OpenInOtherWindow()<cr>
dblume Make OpenInOtherWindow easier.

dblume authored 2 years ago

282) nmap <silent> <leader>f :call OpenInOtherWindow()<cr>
David Blume Add OpenInOtherWindow to .v...

David Blume authored 8 years ago

283) 
David Blume first commit

David Blume authored 8 years ago

284) if has("autocmd")
285)   autocmd BufWrite *.py :call DeleteTrailingWS()  " Delete trailing whitespace
286)   " Don't let smartindent unindent the # character in Python files
287)   autocmd FileType python  inoremap # X<c-h>#
dblume expand tabs for Python

dblume authored 1 year ago

288)   autocmd FileType python,c,cpp,php,brs,sh  set expandtab  " Use spaces instead of tabs
David Blume first commit

David Blume authored 8 years ago

289)   autocmd Filetype make    setl noexpandtab       " ...not for files that use tabs.
290) 
291)   " Use the vim command %retab before applying the following
292)   " two with files that have 8-space tabs.
David Blume Add .vimrc tab values for ....

David Blume authored 8 years ago

293)   autocmd FileType c,cpp,python,php  set tabstop=4
dblume Remove some lines, allow mo...

dblume authored 2 years ago

294)   autocmd FileType c,cpp,php  set shiftwidth=4
David Blume first commit

David Blume authored 8 years ago

295) 
296)   autocmd FileType python  set foldmethod=indent  " 'za' to fold
297) 
David Blume Disable vim-airline whitesp...

David Blume authored 6 years ago

298)   autocmd FileType c,cpp nmap <buffer> <leader>s :call SwitchSourceHeader()<cr>
David Blume first commit

David Blume authored 8 years ago

299)   autocmd FileType c,cpp set foldmethod=syntax
300) 
301)   if v:version >= 703
302)     " I toggle out of relative number when Vim's focus is lost, because
303)     " if I'm not editing, then I may be referring to errors with line numbers.
304)     autocmd FocusLost * if &relativenumber | set number | endif
305)     autocmd FocusGained * if &number | set relativenumber | endif
306)   endif
307) 
dblume Remove some lines, allow mo...

dblume authored 2 years ago

308)   autocmd BufRead *.txt set wrap linebreak   " "soft" wrap of existing lines
309)   autocmd BufRead README set wrap linebreak  " "soft" wrap of existing lines
dblume Add .local/bin to $PATH

dblume authored 1 year ago

310)   autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/
David Blume first commit

David Blume authored 8 years ago

311) 
dblume Always start on first line...

dblume authored 6 months ago

312)   " When editing a file, always jump to the last cursor position...
David Blume first commit

David Blume authored 8 years ago

313)   autocmd BufReadPost *
dblume Always start on first line...

dblume authored 6 months ago

314)   \ if line("'\"") > 0 && line ("'\"") <= line("$") |
David Blume first commit

David Blume authored 8 years ago

315)   \   exe "normal! g'\"" |
316)   \ endif
dblume Always start on first line...

dblume authored 6 months ago

317)   " ...except for gitcommit where we always want to start at the top
318)   autocmd FileType gitcommit exe "normal! gg"
dblume Retrieve git branch only on...

dblume authored 6 months ago

319) 
dblume Only show encoding and form...

dblume authored 6 months ago

320)   autocmd BufNewFile,BufReadPost *
321)   \ let b:git_branch = GitBranch() |
322)   \ let b:enc_fmt = EncodingAndFormat()
323)   autocmd BufEnter *
324)   \ let b:git_branch = GitBranch() |
325)   \ let b:enc_fmt = EncodingAndFormat()
David Blume first commit

David Blume authored 8 years ago

326) endif
327) 
328) " This requires vim to be compiled with +python
329) " Use auto complete in insert mode with ctrl-x, ctrl-o
330) " See :help new-omni-completion for more.
331) filetype plugin on
332) set omnifunc=syntaxcomplete#Complete
dblume Completion tweaks

dblume authored 2 years ago

333) 
334) " Torn on whether I like the omni completion preview window left open or not.
335) " autocmd CompleteDone * pclose
336) 
337) " Omni completion via ctrl-space (in addition to ctrl-x ctrl-o)
338) inoremap <Nul> <C-x><C-o>
339) 
David Blume Add cscope support

David Blume authored 6 years ago

340) " cscope
341) if has("cscope")
342)     set cscopetag  " Use both cscope and ctag for 'ctrl-]'
David Blume I prefer ctags to be search...

David Blume authored 6 years ago

343)     set csto=1     " 0=cscope first; 1=ctags first
dblume Use QuickFix for cscope.

dblume authored 2 years ago

344)     set cscopequickfix=s-,c-,d-,i-,t-,e-,a- " cscope to quickfix window
345) 
David Blume Use local cscope.out databa...

David Blume authored 3 years ago

346)     set nocsverb
347)     " add any database in current directory
348)     if filereadable("cscope.out")
349)         cs add cscope.out
350)     " else add database pointed to by environment
351)     elseif $CSCOPE_DB != ""
352)         cs add $CSCOPE_DB
353)     endif
354)     set csverb
David Blume Add cscope support

David Blume authored 6 years ago

355) endif
356) 
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

357) " From https://stackoverflow.com/questions/15393301/how-to-automatically-sort-quickfix-entries-by-line-text-in-vim
358) " :grep term %
359) " :grep -r term path/
360) " :cw
361) " :ccl (or C-w,q)
dblume QuickFix window: only sort...

dblume authored 2 years ago

362) autocmd! QuickfixCmdPost * call MaybeSortQuickfix('QfStrCmp')
363) 
364) function! MaybeSortQuickfix(fn)
365) "    exe 'normal! '  " Doesn't work. Wanted to jump back to where we were.
366)     let t = getqflist({'title': 1}).title
dblume QuickFix sorts for 'vimgrep...

dblume authored 2 years ago

367)     " Only sort the files if for search-style commands, not "make".
dblume Follow up integrate ripgrep...

dblume authored 2 years ago

368)     if stridx(t, "cs ") == 0 || stridx(t, ":gr") == 0 || stridx(t, ":vim") == 0 || stridx(t, ":rg") == 0
dblume QuickFix window: only sort...

dblume authored 2 years ago

369)         call setqflist(sort(getqflist(), a:fn), 'r')
370)         call setqflist([], 'r', {'title': t})
371)     endif
372)     cwindow
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

373) endfunction
374) 
375) function! QfStrCmp(e1, e2)
376)     let [t1, t2] = [bufname(a:e1.bufnr), bufname(a:e2.bufnr)]
377)     return t1 <# t2 ? -1 : t1 ==# t2 ? 0 : 1
378) endfunction
379) 
dblume Integrate ripgrep into vim.

dblume authored 2 years ago

380) " Use ripgrep for search instead of grep
381) if executable('rg')
382)     " set grepprg=rg\ --vimgrep\ --hidden\ —glob '!.git'
383)     set grepprg=rg
384) endif
385) " Navigate quickfix list with ease
386) nnoremap <silent> [q :cprevious<CR>
387) nnoremap <silent> ]q :cnext<CR>
388) 
David Blume Add tip for using Roboto Mo...

David Blume authored 6 years ago

389) " I use Roboto Mono from https://github.com/powerline/fonts
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

390) " On iTerm2, Preferences -> Profiles -> Text -> Font
David Blume Add tip for using Roboto Mo...

David Blume authored 6 years ago

391) " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
392) " C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -o Font="Roboto Mono for Powerline" -
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

393) 
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

394) " Settings that make netrw more like NERDTree
395) let g:netrw_banner = 0
396) let g:netrw_liststyle = 3
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

397) let g:netrw_browse_split = 4
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

398) let g:netrw_altv = 1
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

399) " set g:netrw_winsize to negative for absolute width, positive for relative
400) let g:netrw_winsize = -36
401) " let g:netrw_winsize = 35
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

402) " sort is affecting only: directories on the top, files below
403) let g:netrw_sort_sequence = '[\/]$,*'
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

404) 
dblume Added vim-rooter.

dblume authored 2 years ago

405) " Experimenting with vim-rooter
406) let g:rooter_patterns = ['.git', 'Makefile', 'builds/']
dblume Make vim-rooter manual.

dblume authored 1 year ago

407) let g:rooter_cd_cmd = 'lcd'
408) let g:rooter_manual_only = 1