224ed0fb7ed9a5bf76d911c609b5c5fe27e1603b
dblume Add - as a word character

dblume authored 10 months ago

1) " Version 2023-12-15.1 - Stop using vim-airline
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 10 months ago

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

dblume authored 9 months ago

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

dblume authored 8 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 8 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 8 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 11 months ago

82)   highlight statusline   ctermfg=24 ctermbg=250  " override scheme
83)   highlight statuslineNC ctermfg=236 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 vim insert mode to stand ou...

dblume authored 11 months ago

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

dblume authored 11 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 8 months ago

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

dblume authored 1 year ago

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

dblume authored 7 months ago

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

dblume authored 8 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 7 months ago

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

dblume authored 1 year ago

100) endfunction
101) 
dblume Default to mode() if not in...

dblume authored 10 months ago

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

dblume authored 1 year ago

104)     \ 'n'  : 'NORMAL',
105)     \ 'v'  : 'VISUAL',
106)     \ 'V'  : 'V·LINE',
107)     \ '' : 'V·BLOCK',
108)     \ 's'  : 'SELECT',
109)     \ 'S'  : 'S·LINE',
110)     \ 'i'  : 'INSERT',
dblume Default to mode() if not in...

dblume authored 10 months ago

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

dblume authored 1 year ago

112)     \ 'R'  : 'REPLACE',
113)     \ 'Rv' : 'V·REPLACE',
114)     \ 'c'  : 'COMMAND',
115)     \}
dblume Default to mode() if not in...

dblume authored 10 months ago

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

dblume authored 1 year ago

118) 
119) function! Trim_brackets(fn)
dblume Support older vim on raspi

dblume authored 1 year ago

120)   if v:version > 800
121)     return trim(a:fn, "[]")
122)   else
123)     return a:fn
124)   endif
dblume Update vim statusline to pr...

dblume authored 1 year ago

125) endfunction
126) 
dblume Default to mode() if not in...

dblume authored 10 months ago

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

dblume authored 1 year ago

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

dblume authored 7 months ago

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

dblume authored 10 months ago

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

dblume authored 10 months ago

131) set statusline+=%m
132) set statusline+=\ %r
133) set statusline+=\ %=
dblume Update vim statusline to pr...

dblume authored 1 year ago

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

dblume authored 10 months ago

135) set statusline+=\ %{Trim_brackets(&filetype)}
136) set statusline+=\ %#StatusLineNC#
dblume Update vim statusline to pr...

dblume authored 1 year ago

137) set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
138) set statusline+=\[%{&fileformat}\]
dblume vimrc use box drawing vertical

dblume authored 10 months ago

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

dblume authored 10 months ago

140) set statusline+=\ %l/%L\ :\ %c\ 
David Blume first commit

David Blume authored 8 years ago

141) 
142) set encoding=utf-8
143) 
dblume No comments after key mappi...

dblume authored 1 year ago

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

David Blume authored 8 years ago

146) " I use relative number for cursor movement.
147) nmap <leader>r :set relativenumber!<cr>
148) nmap <leader>n :set number!<cr>
149) 
150) " Useful mappings for managing tabs
dblume Remove bad vim mappings for...

dblume authored 2 years ago

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

David Blume authored 8 years ago

153) nmap <leader>tn :tabnew
154) nmap <leader>to :tabonly<cr>
155) nmap <leader>tc :tabclose<cr>
156) nmap <leader>tm :tabmove
dblume Add shortcuts for tab selec...

dblume authored 2 years ago

157) nmap <leader>1 1gt
158) nmap <leader>2 2gt
159) nmap <leader>3 3gt
160) nmap <leader>4 4gt
161) nmap <leader>5 5gt
162) nmap <leader>6 6gt
163) nmap <leader>7 7gt
164) nmap <leader>8 8gt
165) nmap <leader>9 9gt
dblume Use <leader>o OpenCurrentAs...

dblume authored 2 years ago

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

dblume authored 2 years ago

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

dblume authored 2 years ago

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

dblume authored 2 years ago

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

dblume authored 2 years ago

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

David Blume authored 8 years ago

175) 
176) " pastetoggle
177) nmap <leader>p :set invpaste paste?<cr>
178) 
David Blume Add mapping to paste onto n...

David Blume authored 6 years ago

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

David Blume authored 3 years ago

182) " Make netrw's Explore behave a little like NERDTreeToggle
183) " 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

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

189)         return
190)       endif
191)     endfor
192)   endif
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

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

David Blume authored 4 years ago

194) endfunction
195) nmap <leader>e :call ToggleNetrw()<cr>
196) 
dblume No comments after key mappi...

dblume authored 1 year ago

197) " install taglist
198) let Tlist_GainFocus_On_ToggleOpen = 1  " Jump to taglist window on open
199) let Tlist_Exit_OnlyWindow = 1          " if you are the last, kill yourself
200) let Tlist_Close_On_Select = 1          " Close taglist window on select
201) nmap <leader>l :TlistToggle<cr>
202) 
203) " install vim-bbye
204) nmap <leader>bd :Bdelete<cr>
David Blume first commit

David Blume authored 8 years ago

205) 
206) " Visual mode mappings
207) """
208) 
209) " map sort function to a key
210) vnoremap <leader>s :sort<cr>
211) 
212) "easier moving of code blocks
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

213) vnoremap < <gv
214) vnoremap > >gv
David Blume first commit

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

dblume authored 2 years ago

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

David Blume authored 8 years ago

277) 
David Blume first commit

David Blume authored 8 years ago

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

dblume authored 1 year ago

282)   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

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

David Blume authored 8 years ago

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

dblume authored 2 years ago

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

David Blume authored 8 years ago

289) 
290)   autocmd FileType python  set foldmethod=indent  " 'za' to fold
291) 
David Blume Disable vim-airline whitesp...

David Blume authored 6 years ago

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

David Blume authored 8 years ago

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

dblume authored 2 years ago

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

dblume authored 1 year ago

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

David Blume authored 8 years ago

305) 
dblume Always start on first line...

dblume authored 7 months ago

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

David Blume authored 8 years ago

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

dblume authored 7 months ago

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

David Blume authored 8 years ago

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

dblume authored 7 months ago

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

dblume authored 7 months ago

313) 
314)   autocmd BufNewFile,BufReadPost * let b:git_branch = GitBranch()
315)   autocmd BufEnter * let b:git_branch = GitBranch()
David Blume first commit

David Blume authored 8 years ago

316) endif
317) 
318) " This requires vim to be compiled with +python
319) " Use auto complete in insert mode with ctrl-x, ctrl-o
320) " See :help new-omni-completion for more.
321) filetype plugin on
322) set omnifunc=syntaxcomplete#Complete
dblume Completion tweaks

dblume authored 2 years ago

323) 
324) " Torn on whether I like the omni completion preview window left open or not.
325) " autocmd CompleteDone * pclose
326) 
327) " Omni completion via ctrl-space (in addition to ctrl-x ctrl-o)
328) inoremap <Nul> <C-x><C-o>
329) 
David Blume Add cscope support

David Blume authored 6 years ago

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

David Blume authored 6 years ago

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

dblume authored 2 years ago

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

David Blume authored 3 years ago

336)     set nocsverb
337)     " add any database in current directory
338)     if filereadable("cscope.out")
339)         cs add cscope.out
340)     " else add database pointed to by environment
341)     elseif $CSCOPE_DB != ""
342)         cs add $CSCOPE_DB
343)     endif
344)     set csverb
David Blume Add cscope support

David Blume authored 6 years ago

345) endif
346) 
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

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

dblume authored 2 years ago

352) autocmd! QuickfixCmdPost * call MaybeSortQuickfix('QfStrCmp')
353) 
354) function! MaybeSortQuickfix(fn)
355) "    exe 'normal! '  " Doesn't work. Wanted to jump back to where we were.
356)     let t = getqflist({'title': 1}).title
dblume QuickFix sorts for 'vimgrep...

dblume authored 2 years ago

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

dblume authored 2 years ago

358)     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

359)         call setqflist(sort(getqflist(), a:fn), 'r')
360)         call setqflist([], 'r', {'title': t})
361)     endif
362)     cwindow
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

363) endfunction
364) 
365) function! QfStrCmp(e1, e2)
366)     let [t1, t2] = [bufname(a:e1.bufnr), bufname(a:e2.bufnr)]
367)     return t1 <# t2 ? -1 : t1 ==# t2 ? 0 : 1
368) endfunction
369) 
dblume Integrate ripgrep into vim.

dblume authored 2 years ago

370) " Use ripgrep for search instead of grep
371) if executable('rg')
372)     " set grepprg=rg\ --vimgrep\ --hidden\ —glob '!.git'
373)     set grepprg=rg
374) endif
375) " Navigate quickfix list with ease
376) nnoremap <silent> [q :cprevious<CR>
377) nnoremap <silent> ]q :cnext<CR>
378) 
David Blume Add tip for using Roboto Mo...

David Blume authored 6 years ago

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

David Blume authored 6 years ago

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

David Blume authored 6 years ago

381) " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
382) " 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

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

David Blume authored 4 years ago

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

David Blume authored 3 years ago

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

David Blume authored 4 years ago

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

David Blume authored 3 years ago

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

David Blume authored 4 years ago

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

David Blume authored 6 years ago

394) 
dblume Added vim-rooter.

dblume authored 2 years ago

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

dblume authored 2 years ago

397) let g:rooter_cd_cmd = 'lcd'
398) let g:rooter_manual_only = 1