mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 02:25:11 +01:00
Compare commits
2 Commits
8d0ddd2be1
...
cf5886795f
| Author | SHA1 | Date | |
|---|---|---|---|
| cf5886795f | |||
| aac84dffbc |
10
.vimrc
10
.vimrc
@@ -410,6 +410,8 @@ let g:preview_markdown_vertical = 1
|
|||||||
" Navigate through and from markdown files
|
" Navigate through and from markdown files
|
||||||
"Plug 'chmp/mdnav'
|
"Plug 'chmp/mdnav'
|
||||||
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
|
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
|
||||||
|
" Only open these local files in vim, use pyfile for all others:
|
||||||
|
let g:mdnav#Extensions = 'md, MD, markdown, todo, txt, rst'
|
||||||
|
|
||||||
|
|
||||||
" The NERD Commenter: A plugin that allows for easy commenting of code for
|
" The NERD Commenter: A plugin that allows for easy commenting of code for
|
||||||
@@ -496,6 +498,14 @@ set listchars=tab:▸\ ,trail:·
|
|||||||
" Display whitespace
|
" Display whitespace
|
||||||
set list
|
set list
|
||||||
|
|
||||||
|
" Trim trailing whitespace with :TrimWhitespace
|
||||||
|
fun! TrimWhitespace()
|
||||||
|
let l:save = winsaveview()
|
||||||
|
keeppatterns %s/\s\+$//e
|
||||||
|
call winrestview(l:save)
|
||||||
|
endfun
|
||||||
|
command! TrimWhitespace call TrimWhitespace()
|
||||||
|
|
||||||
" enable words completion
|
" enable words completion
|
||||||
set dictionary+=/usr/share/dict/words
|
set dictionary+=/usr/share/dict/words
|
||||||
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
||||||
|
|||||||
Reference in New Issue
Block a user