dblume commited on 2022-04-07 15:18:17
Showing 1 changed files, with 6 additions and 32 deletions.
| ... | ... |
@@ -34,17 +34,8 @@ inoremap jk <esc> |
| 34 | 34 |
" clear search highlights |
| 35 | 35 |
nnoremap <cr> :noh<cr><cr> |
| 36 | 36 |
|
| 37 |
-" Commented out because I want tags searches to always be case sensitive. |
|
| 38 |
-" Override with \c anywhere in your search. |
|
| 39 |
-"set ignorecase " If you enter all lowercase, it's case insensitive, |
|
| 40 |
-"set smartcase " if you use mixed-case terms, it's case sensitive. |
|
| 41 |
- |
|
| 42 | 37 |
syntax on |
| 43 | 38 |
|
| 44 |
-" If you think this is hard to read, |
|
| 45 |
-" change the color of comments in vim, or |
|
| 46 |
-" use another color scheme like desert or peaksea |
|
| 47 |
-" |
|
| 48 | 39 |
set t_Co=256 |
| 49 | 40 |
if v:version >= 703 |
| 50 | 41 |
set colorcolumn=80 |
| ... | ... |
@@ -87,18 +78,12 @@ if has('statusline')
|
| 87 | 78 |
set statusline=%<%f\ " Filename |
| 88 | 79 |
set statusline+=%w%h%m%r " Options |
| 89 | 80 |
"set statusline+=%{fugitive#statusline()} " Git
|
| 90 |
- "set statusline+=\ [%{&ff}/%Y] " filetype
|
|
| 91 |
- "set statusline+=\ [%{getcwd()}] " current dir
|
|
| 92 |
- "set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char |
|
| 93 |
- set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info |
|
| 81 |
+ set statusline+=\[%{&ff}/%Y] " filetype
|
|
| 82 |
+ set statusline+=%=%-12.(%l,%c%V%)\ %p%% " Right aligned file nav info |
|
| 94 | 83 |
endif |
| 95 | 84 |
|
| 96 | 85 |
set encoding=utf-8 |
| 97 | 86 |
|
| 98 |
-" I don't set comma for mapleader because it's useful for reverse-finding. |
|
| 99 |
-" let mapleader = "," |
|
| 100 |
-" let g:mapleader = "," |
|
| 101 |
- |
|
| 102 | 87 |
nmap <leader>w :w!<cr> " Fast saving |
| 103 | 88 |
" I use relative number for cursor movement. |
| 104 | 89 |
nmap <leader>r :set relativenumber!<cr> |
| ... | ... |
@@ -219,17 +204,16 @@ nmap <silent> <leader>F :call OpenInOtherWindow()<cr> |
| 219 | 204 |
nmap <silent> <leader>f :call OpenInOtherWindow()<cr> |
| 220 | 205 |
|
| 221 | 206 |
if has("autocmd")
|
| 222 |
- autocmd! BufWritePost .vimrc source % " re-source this file when saved. |
|
| 223 | 207 |
autocmd BufWrite *.py :call DeleteTrailingWS() " Delete trailing whitespace |
| 224 | 208 |
" Don't let smartindent unindent the # character in Python files |
| 225 | 209 |
autocmd FileType python inoremap # X<c-h># |
| 226 |
- autocmd FileType c,cpp,python,php,brs set expandtab " Use spaces instead of tabs |
|
| 210 |
+ autocmd FileType c,cpp,php,brs set expandtab " Use spaces instead of tabs |
|
| 227 | 211 |
autocmd Filetype make setl noexpandtab " ...not for files that use tabs. |
| 228 | 212 |
|
| 229 | 213 |
" Use the vim command %retab before applying the following |
| 230 | 214 |
" two with files that have 8-space tabs. |
| 231 | 215 |
autocmd FileType c,cpp,python,php set tabstop=4 |
| 232 |
- autocmd FileType c,cpp,python,php set shiftwidth=4 |
|
| 216 |
+ autocmd FileType c,cpp,php set shiftwidth=4 |
|
| 233 | 217 |
|
| 234 | 218 |
autocmd FileType python set foldmethod=indent " 'za' to fold |
| 235 | 219 |
autocmd FileType python set foldlevel=99 |
| ... | ... |
@@ -248,15 +232,8 @@ if has("autocmd")
|
| 248 | 232 |
autocmd FocusGained * if &number | set relativenumber | endif |
| 249 | 233 |
endif |
| 250 | 234 |
|
| 251 |
- " Since I have the undo tree saved to disk now (see above), I might prefer to |
|
| 252 |
- " automatically save the file when focus is lost. |
|
| 253 |
- " autocmd FocusLost * silent! wa |
|
| 254 |
- |
|
| 255 |
- " I'm in the habit of hitting Return myself. |
|
| 256 |
- " autocmd BufRead *.txt set textwidth=78 " Limit width of text to 78 chars |
|
| 257 |
- |
|
| 258 |
- autocmd BufRead *.txt set wrap linebreak nolist " "soft" wrap of existing lines |
|
| 259 |
- autocmd BufRead README set wrap linebreak nolist " "soft" wrap of existing lines |
|
| 235 |
+ autocmd BufRead *.txt set wrap linebreak " "soft" wrap of existing lines |
|
| 236 |
+ autocmd BufRead README set wrap linebreak " "soft" wrap of existing lines |
|
| 260 | 237 |
|
| 261 | 238 |
" When editing a file, always jump to the last cursor position |
| 262 | 239 |
autocmd BufReadPost * |
| ... | ... |
@@ -274,9 +251,6 @@ set omnifunc=syntaxcomplete#Complete |
| 274 | 251 |
" set omnifunc=pythoncomplete#Complete |
| 275 | 252 |
" inoremap <Nul> <C-x><C-o> |
| 276 | 253 |
|
| 277 |
-" See git history for ExecuteFileIntoScratchBuffer. |
|
| 278 |
-" Instead use: tmux and entr to run code after saving edits. |
|
| 279 |
- |
|
| 280 | 254 |
" cscope |
| 281 | 255 |
if has("cscope")
|
| 282 | 256 |
set cscopetag " Use both cscope and ctag for 'ctrl-]' |
| 283 | 257 |