mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 22:54:11 -05:00
<Leader><Ctrl-l> now formats the doc/selection to a width of 79 chars,
autoformat is now <leader><leader><c-f>, > and < are no longer bound to tab/untab (they were interfering with >> and << for diff), and the mapping to create a new tab with vim filer is now <A-c> (create) as Alt-f is the default search results clear command
This commit is contained in:
parent
2c8b3069e5
commit
b083ac0e91
1 changed files with 193 additions and 184 deletions
|
@ -13,247 +13,254 @@
|
||||||
" *The default <Leader> key is: \
|
" *The default <Leader> key is: \
|
||||||
"
|
"
|
||||||
" Aliases:
|
" Aliases:
|
||||||
" :GitLog & :gitlog | (C) -> show a navigatable log of commit history
|
" :GitLog & :gitlog | (C) -> show a navigatable log of commit history
|
||||||
" :GitDiff & :gitdiff | (C) -> current file and last commit in vimdiff
|
" :GitDiff & :gitdiff | (C) -> current file and last commit in vimdiff
|
||||||
" :GitStatus & :gitstatus | (C) -> shows the output of git status
|
" :GitStatus & :gitstatus | (C) -> shows the output of git status
|
||||||
" :GitCommit & :gitcommit | (C) -> commits changes to the current file
|
" :GitCommit & :gitcommit | (C) -> commits changes to the current file
|
||||||
" :wsudo & :sudow | (C) -> write the file as root using sudo
|
" :wsudo & :sudow | (C) -> write the file as root using sudo
|
||||||
" :esudo & :sudoe | (C) -> read a file as root using sudo
|
" :esudo & :sudoe | (C) -> read a file as root using sudo
|
||||||
"
|
"
|
||||||
" Reference: (view plugin documentation for the full list of commands each offers)
|
" Reference: (view plugin documentation for the full list of commands each offers)
|
||||||
" (tcomment _ can also be -)
|
" (tcomment _ can also be -)
|
||||||
" <Ctrl-_><Ctrl-_> | (A) -> comment selection/create an empty comment
|
" <Ctrl-_><Ctrl-_> | (A) -> comment selection/create an empty comment
|
||||||
" gc | (A) -> comment selection/create an empty comment
|
" gc | (A) -> comment selection/create an empty comment
|
||||||
" <Ctrl-_>b | (A) -> comment the current block(s)
|
" <Ctrl-_>b | (A) -> comment the current block(s)
|
||||||
" <Ctrl-_>r | (A) -> comment everything on the line to the right
|
" <Ctrl-_>r | (A) -> comment everything on the line to the right
|
||||||
" <Ctrl-_>p | (A) -> comment the current paragraph
|
" <Ctrl-_>p | (A) -> comment the current paragraph
|
||||||
" + | (V) -> increase the selected region
|
" + | (V) -> increase the selected region
|
||||||
" _ | (V) -> decrease the selected region
|
" _ | (V) -> decrease the selected region
|
||||||
" <Leader><Space> | (N) -> center content and hide everything else
|
" <Leader><Space> | (N) -> center content and hide everything else
|
||||||
"
|
"
|
||||||
" (surround)
|
" (surround)
|
||||||
" S" | (V) -> surround selection with quotes
|
" S" | (V) -> surround selection with quotes
|
||||||
" S<a href=""> | (V) -> surround <a href="">selection</a>
|
" S<a href=""> | (V) -> surround <a href="">selection</a>
|
||||||
" ds" | (N) -> delete surrounding ""
|
" ds" | (N) -> delete surrounding ""
|
||||||
" dst | (N) -> delete surrounding tag (ie: <strong></strong>)
|
" dst | (N) -> delete surrounding tag (ie: <strong></strong>)
|
||||||
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
||||||
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
||||||
" cst" | (N) -> change any surrounding tag to ""
|
" cst" | (N) -> change any surrounding tag to ""
|
||||||
"
|
"
|
||||||
" Mappings:
|
" Mappings:
|
||||||
" (mouse)
|
" (mouse)
|
||||||
" <Shift-MiddleClick> | (A) -> unbind this from vim so xorg can paste
|
" <Shift-MiddleClick> | (A) -> unbind this from vim so xorg can paste
|
||||||
"
|
"
|
||||||
" <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time
|
" <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time
|
||||||
" <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time
|
" <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time
|
||||||
" <Alt-ScrollUp> | (A) -> scroll right one character at a time
|
" <Alt-ScrollUp> | (A) -> scroll right one character at a time
|
||||||
" <Alt-ScrollDown> | (A) -> scroll left one character at a time
|
" <Alt-ScrollDown> | (A) -> scroll left one character at a time
|
||||||
"
|
"
|
||||||
" <MiddleClick> | (A) -> behaves like right-click (selects to the cursor)
|
" <MiddleClick> | (A) -> behaves like right-click (selects to the cursor)
|
||||||
"
|
"
|
||||||
" <Ctrl-RightClick> | (A) -> copy selection or character under the cursor
|
" <Ctrl-RightClick> | (A) -> copy selection or character under the cursor
|
||||||
" <Ctrl-MiddleClick> | (A) -> copy selection or character under the cursor
|
" <Ctrl-MiddleClick> | (A) -> copy selection or character under the cursor
|
||||||
" <Alt-RightClick> | (A) -> cut selection or character under the cursor
|
" <Alt-RightClick> | (A) -> cut selection or character under the cursor
|
||||||
" <Alt-MiddleClick> | (A) -> cut selection or character under the cursor
|
" <Alt-MiddleClick> | (A) -> cut selection or character under the cursor
|
||||||
" <Ctrl-Alt-RightClick> | (A) -> paste at the cursor (not mouse)
|
" <Ctrl-Alt-RightClick> | (A) -> paste at the cursor (not mouse)
|
||||||
" <Ctrl-Alt-MiddleClick> | (A) -> paste at the cursor (not mouse)
|
" <Ctrl-Alt-MiddleClick> | (A) -> paste at the cursor (not mouse)
|
||||||
"
|
"
|
||||||
" <Ctrl-LeftClick> | (A) -> select the word being clicked
|
" <Ctrl-LeftClick> | (A) -> select the word being clicked
|
||||||
" <Alt-LeftClick> | (A) -> select the line being clicked
|
" <Alt-LeftClick> | (A) -> select the line being clicked
|
||||||
" <Ctrl-Alt-LeftClick> | (A) -> select the paragraph being clicked
|
" <Ctrl-Alt-LeftClick> | (A) -> select the paragraph being clicked
|
||||||
"
|
"
|
||||||
" (tabs)
|
" (tabs)
|
||||||
" <Alt-n> | (N) -> go to the next open tab
|
" <Alt-n> | (N) -> go to the next open tab
|
||||||
" <Alt-p> | (N) -> go to the previous open tab
|
" <Alt-p> | (N) -> go to the previous open tab
|
||||||
" <Alt-t> | (N) -> open a new tab
|
" <Alt-t> | (N) -> open a new tab
|
||||||
" <Alt-f> | (N) -> create a new tab with vimfiler
|
" <Alt-c> | (N) -> create a new tab with vimfiler
|
||||||
" <Alt-d> | (N) -> create a new tab with a double pane vimfiler
|
" <Alt-d> | (N) -> create a new tab with a double pane vimfiler
|
||||||
"
|
"
|
||||||
" (toggles)
|
" (toggles)
|
||||||
" ?? | (N) -> toggle the quick reference sidebar
|
" ?? | (N) -> toggle the quick reference sidebar
|
||||||
" ?> | (N) -> toggle command reference sidebar
|
" ?> | (N) -> toggle command reference sidebar
|
||||||
" ?< | (N) -> toggle normal mode key bindings reference sidebar
|
" ?< | (N) -> toggle normal mode key bindings reference sidebar
|
||||||
" `` | (N) -> toggle the vimfiler sidebar on the right
|
" `` | (N) -> toggle the vimfiler sidebar on the right
|
||||||
" ~~ | (N) -> toggle the vimfiler sidebar on the left
|
" ~~ | (N) -> toggle the vimfiler sidebar on the left
|
||||||
" <Space> | (N) -> toggle folds
|
" <Space> | (N) -> toggle folds
|
||||||
" <F1> | (A) -> toggle line numbers
|
" <F1> | (A) -> toggle line numbers
|
||||||
" <F2> | (A) -> toggle row/column cursor highlighting
|
" <F2> | (A) -> toggle row/column cursor highlighting
|
||||||
" <F3> | (A) -> toggle line wrapping
|
" <F3> | (A) -> toggle line wrapping
|
||||||
" <F4> | (A) -> toggle all folds
|
" <F4> | (A) -> toggle all folds
|
||||||
" <F5> | (A) -> toggle spell check
|
" <F5> | (A) -> toggle spell check
|
||||||
" <F6> | (A) -> toggle syntax checking
|
" <F6> | (A) -> toggle syntax checking
|
||||||
" <F7> | (A) -> toggle version control differences
|
" <F7> | (A) -> toggle version control differences
|
||||||
" <Ctrl-F7> | (A) -> toggle version control commit history
|
" <Ctrl-F7> | (A) -> toggle version control commit history
|
||||||
" <F8> | (A) -> toggle the tagbar sidebar
|
" <F8> | (A) -> toggle the tagbar sidebar
|
||||||
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
||||||
" <F9> | (A) -> toggle the gundo undo history sidebar
|
" <F9> | (A) -> toggle the gundo undo history sidebar
|
||||||
" <Ctrl-F9> | (A) -> enable spellcheck & toggle list of spelling errors
|
" <Ctrl-F9> | (A) -> enable spellcheck & toggle list of spelling errors
|
||||||
"
|
"
|
||||||
" (gvim toggles)
|
" (gvim toggles)
|
||||||
" <Ctrl-F1> | (A) -> toggle the menu
|
" <Ctrl-F1> | (A) -> toggle the menu
|
||||||
" <Ctrl-F2> | (A) -> toggle the toolbar
|
" <Ctrl-F2> | (A) -> toggle the toolbar
|
||||||
" <Ctrl-F3> | (A) -> toggle the scrollbar
|
" <Ctrl-F3> | (A) -> toggle the scrollbar
|
||||||
"
|
"
|
||||||
" (completion)
|
" (completion)
|
||||||
" <Ctrl-\>, | (A) -> enter after emmet 'word' (ie: html:5)
|
" <Ctrl-\>, | (A) -> enter after emmet 'word' (ie: html:5)
|
||||||
" \\ | (N) -> show spelling suggestions popup for word
|
" \\ | (N) -> show spelling suggestions popup for word
|
||||||
" \| | (N) -> add word to a local list of correct spellings
|
" \| | (N) -> add word to a local list of correct spellings
|
||||||
" <Tab> | (I) -> (neocomp) autocomplete using common string
|
" <Tab> | (I) -> (neocomp) autocomplete using common string
|
||||||
" <Leader><Tab> | (I) -> (neocomp) autocomplete the common string
|
" <Leader><Tab> | (I) -> (neocomp) autocomplete the common string
|
||||||
" <Enter> | (I) -> (neocomp) close the suggestion popup
|
" <Enter> | (I) -> (neocomp) close the suggestion popup
|
||||||
" <Leader><Backspace> | (I) -> (neocomp) undo the most recent completion
|
" <Leader><Backspace> | (I) -> (neocomp) undo the most recent completion
|
||||||
"
|
"
|
||||||
" (formatting)
|
" (formatting)
|
||||||
" <Backspace> | (V) -> deletes currently selected text
|
" <Backspace> | (V) -> deletes currently selected text
|
||||||
" <Leader><C-a> | (N) -> format document using :Autoformat
|
" <Leader><Ctrl-f> | (N) -> format document and return to cursor
|
||||||
" <Leader><C-f> | (V) -> format the selection and return to cursor
|
" <Leader><Ctrl-f> | (V) -> format the selection and return to cursor
|
||||||
" <Leader><C-f> | (N) -> format document and return to cursor
|
" <Leader><Leader><Ctrl-f> | (N) -> format document using :Autoformat
|
||||||
" <Leader><C-w> | (N) -> remove whitespace
|
" <Leader><Ctrl-l> | (N) -> format document to a width of 79 characters
|
||||||
" <Leader><C-t> | (N) -> convert tabs into spaces
|
" <Leader><Ctrl-l> | (V) -> format selection to a width of 79 characters
|
||||||
" <Leader>\ | (N) -> remove search highlighting
|
" <Leader><Ctrl-w> | (N) -> remove whitespace
|
||||||
" <Leader><Esc> | (N) -> an alt mapping to remove search highlighting
|
" <Leader><Ctrl-t> | (N) -> convert tabs into spaces
|
||||||
" <Tab> | (V) -> indent all the lines currently selected
|
" <Leader>\ | (N) -> remove search highlighting
|
||||||
" <Tab> | (N) -> indent the current line
|
" <Leader><Esc> | (N) -> an alt mapping to remove search highlighting
|
||||||
" <Shift-Tab> | (V) -> unindent all the lines currently selected
|
" <Tab> | (V) -> indent all the lines currently selected
|
||||||
" <Shift-Tab> | (N) -> unindent the current line
|
" <Tab> | (N) -> indent the current line
|
||||||
|
" <Shift-Tab> | (V) -> unindent all the lines currently selected
|
||||||
|
" <Shift-Tab> | (N) -> unindent the current line
|
||||||
"
|
"
|
||||||
" (movement)
|
" (movement)
|
||||||
" = | (N) -> move to the first character on the next line
|
" = | (N) -> move to the first character on the next line
|
||||||
" <Ctrl-Up> | (N) -> move to the beginning of the document
|
" <Ctrl-Up> | (N) -> move to the beginning of the document
|
||||||
" <Ctrl-Down> | (N) -> move to the end of the document
|
" <Ctrl-Down> | (N) -> move to the end of the document
|
||||||
" <Ctrl-Right> | (N) -> move to the end of the line
|
" <Ctrl-Right> | (N) -> move to the end of the line
|
||||||
" <Ctrl-Left> | (N) -> move to the beginning of the non-whitespace
|
" <Ctrl-Left> | (N) -> move to the beginning of the non-whitespace
|
||||||
"
|
"
|
||||||
" <Shift-Up> | (N) -> move a few lines up
|
" <Shift-Up> | (N) -> move a few lines up
|
||||||
" <Shift-Down> | (N) -> move a few lines down
|
" <Shift-Down> | (N) -> move a few lines down
|
||||||
"
|
"
|
||||||
" <Alt+Up> | (V) -> move a block up one line
|
" <Alt+Up> | (V) -> move a block up one line
|
||||||
" <Alt+Down> | (V) -> move a block down one line
|
" <Alt+Down> | (V) -> move a block down one line
|
||||||
" <Alt+Up> | (N) -> move a line up one line
|
" <Alt+Up> | (N) -> move a line up one line
|
||||||
" <Alt+Down> | (N) -> move a line down one line
|
" <Alt+Down> | (N) -> move a line down one line
|
||||||
"
|
"
|
||||||
" <Alt+Left> | (V) -> move a block up a half page
|
" <Alt+Left> | (V) -> move a block up a half page
|
||||||
" <Alt+Right> | (V) -> move a block down a half page
|
" <Alt+Right> | (V) -> move a block down a half page
|
||||||
" <Alt+Left> | (N) -> move a line up a half page
|
" <Alt+Left> | (N) -> move a line up a half page
|
||||||
" <Alt+Right> | (N) -> move a line down a half page
|
" <Alt+Right> | (N) -> move a line down a half page
|
||||||
" <Alt+h> | (V) -> move a block up a half page
|
" <Alt+h> | (V) -> move a block up a half page
|
||||||
" <Alt+l> | (V) -> move a block down a half page
|
" <Alt+l> | (V) -> move a block down a half page
|
||||||
" <Alt+h> | (N) -> move a line up a half page
|
" <Alt+h> | (N) -> move a line up a half page
|
||||||
" <Alt+l> | (N) -> move a line down a half page
|
" <Alt+l> | (N) -> move a line down a half page
|
||||||
"
|
"
|
||||||
" >> | (N) -> next difference (vimdiff/signify)
|
" >> | (N) -> next difference (vimdiff/signify)
|
||||||
" << | (N) -> previous difference (vimdiff/signify)
|
" << | (N) -> previous difference (vimdiff/signify)
|
||||||
"
|
"
|
||||||
" (selection)
|
" (selection)
|
||||||
" <Ctrl-a> | (N) -> select all text
|
" <Ctrl-a> | (N) -> select all text
|
||||||
" <Leader>a | (N) -> select all text
|
" <Leader>a | (N) -> select all text
|
||||||
" <Ctrl-a> | (V) -> select all text
|
" <Ctrl-a> | (V) -> select all text
|
||||||
" <Leader>a | (V) -> select all text
|
" <Leader>a | (V) -> select all text
|
||||||
"
|
"
|
||||||
" <Ctrl-Up> | (V) -> select all text above
|
" <Ctrl-Up> | (V) -> select all text above
|
||||||
" <Ctrl-Down> | (V) -> select all text below
|
" <Ctrl-Down> | (V) -> select all text below
|
||||||
" <Ctrl-Right> | (V) -> select all text to the right
|
" <Ctrl-Right> | (V) -> select all text to the right
|
||||||
" <Ctrl-Left> | (V) -> select all text to the left up to the indent
|
" <Ctrl-Left> | (V) -> select all text to the left up to the indent
|
||||||
"
|
"
|
||||||
" <Shift-Up> | (V) -> select a few lines up
|
" <Shift-Up> | (V) -> select a few lines up
|
||||||
" <Shift-Down> | (V) -> select a few lines down
|
" <Shift-Down> | (V) -> select a few lines down
|
||||||
" <Shift-Right> | (V) -> select a few lines right
|
" <Shift-Right> | (V) -> select a few lines right
|
||||||
" <Shift-Left> | (V) -> select a few lines left
|
" <Shift-Left> | (V) -> select a few lines left
|
||||||
"
|
"
|
||||||
" (copy/paste and undo/redo)
|
" (copy/paste and undo/redo)
|
||||||
" <Leader>p | (N) -> view the paste buffers and register contents
|
" <Leader>p | (N) -> view the paste buffers and register contents
|
||||||
" y | (N) -> copies the character at the cursor
|
" y | (N) -> copies the character at the cursor
|
||||||
" P | (V) -> save selection to the buffer and paste over
|
" P | (V) -> save selection to the buffer and paste over
|
||||||
" p | (V) -> preserve the buffer pasting over selected text
|
" p | (V) -> preserve the buffer pasting over selected text
|
||||||
" <Ctrl-p>Direction | (N) -> paste in the direction entered
|
" <Ctrl-p>Direction | (N) -> paste in the direction entered
|
||||||
"
|
"
|
||||||
" (delete/cut functions)
|
" (delete/cut functions)
|
||||||
" <Leader>x | (N) -> delete the char(s) under and the cursor
|
" <Leader>x | (N) -> delete the char(s) under and the cursor
|
||||||
" <Leader>x | (V) -> delete the currently selected text
|
" <Leader>x | (V) -> delete the currently selected text
|
||||||
" <Leader>X | (N) -> delete the char(s) before the cursor
|
" <Leader>X | (N) -> delete the char(s) before the cursor
|
||||||
" <Leader>X | (V) -> delete the currently selected lines
|
" <Leader>X | (V) -> delete the currently selected lines
|
||||||
" <Leader>D | (N) -> delete chars under and after the cursor on the line
|
" <Leader>D | (N) -> delete chars under and after the cursor on the line
|
||||||
" <Leader>D | (V) -> delete the currently selected lines
|
" <Leader>D | (V) -> delete the currently selected lines
|
||||||
" <Leader>dw | (N) -> delete chars under and after the cursor in the word
|
" <Leader>dw | (N) -> delete chars under and after the cursor in the word
|
||||||
" <Leader>dd | (N) -> delete lines under and after the one below
|
" <Leader>dd | (N) -> delete lines under and after the one below
|
||||||
" <Leader>d | (V) -> delete the currently selected text
|
" <Leader>d | (V) -> delete the currently selected text
|
||||||
"
|
"
|
||||||
" (typical copy and paste shortcuts)
|
" (typical copy and paste shortcuts)
|
||||||
" <Ctrl-v> | (N) -> paste from buffer
|
" <Ctrl-v> | (N) -> paste from buffer
|
||||||
" <Ctrl-v> | (V) -> paste buffer in place of selection
|
" <Ctrl-v> | (V) -> paste buffer in place of selection
|
||||||
" <Ctrl-v> | (I) -> paste from buffer then return to input
|
" <Ctrl-v> | (I) -> paste from buffer then return to input
|
||||||
" <Ctrl-c> | (N) -> copy character
|
" <Ctrl-c> | (N) -> copy character
|
||||||
" <Ctrl-c> | (V) -> copy selection
|
" <Ctrl-c> | (V) -> copy selection
|
||||||
" <Ctrl-x> | (N) -> cut character
|
" <Ctrl-x> | (N) -> cut character
|
||||||
" <Ctrl-x> | (V) -> cut selection
|
" <Ctrl-x> | (V) -> cut selection
|
||||||
"
|
"
|
||||||
" (remap dangerous functions that skip undo)
|
" (remap dangerous functions that skip undo)
|
||||||
" <Ctrl-u> | (I) -> undo-able equivalent
|
" <Ctrl-u> | (I) -> undo-able equivalent
|
||||||
" <Ctrl-w> | (I) -> undo-able equivalent
|
" <Ctrl-w> | (I) -> undo-able equivalent
|
||||||
"
|
"
|
||||||
" Filetype Specific Mappings:
|
" Filetype Specific Mappings:
|
||||||
" (breeze->html compat)
|
" (breeze->html compat)
|
||||||
" _ | (N) -> move to the next sibling tag
|
" _ | (N) -> move to the next sibling tag
|
||||||
" + | (N) -> move to the previous sibling tag
|
" + | (N) -> move to the previous sibling tag
|
||||||
" <Leader>- | (N) -> move to the first sibling tag
|
" <Leader>- | (N) -> move to the first sibling tag
|
||||||
" <Leader>= | (N) -> move to the last sibling tag
|
" <Leader>= | (N) -> move to the last sibling tag
|
||||||
" <Leader>_ | (N) -> move to the first child tag
|
" <Leader>_ | (N) -> move to the first child tag
|
||||||
" <Leader>+ | (N) -> move to the last child tag
|
" <Leader>+ | (N) -> move to the last child tag
|
||||||
" <Leader><Backspace> | (N) -> move to the parent tag
|
" <Leader><Backspace> | (N) -> move to the parent tag
|
||||||
"
|
"
|
||||||
" (extradite)
|
" (extradite)
|
||||||
" <C-F7> | (A) -> close the dialog
|
" <C-F7> | (A) -> close the dialog
|
||||||
" <Right> | (A) -> same as down
|
" <Right> | (A) -> same as down
|
||||||
" l | (A) -> same as j
|
" l | (A) -> same as j
|
||||||
" <Left> | (A) -> same as Up
|
" <Left> | (A) -> same as Up
|
||||||
" h | (A) -> same as k
|
" h | (A) -> same as k
|
||||||
"
|
"
|
||||||
" (gundo)
|
" (gundo)
|
||||||
" <LeftClick> | (A) -> same as normal + justify on the left
|
" <LeftClick> | (A) -> same as normal + justify on the left
|
||||||
" <MiddleClick> | (A) -> same as the left mouse
|
" <MiddleClick> | (A) -> same as the left mouse
|
||||||
" <RightClick> | (A) -> same as the left mouse
|
" <RightClick> | (A) -> same as the left mouse
|
||||||
" <Right> | (A) -> same as down
|
" <Right> | (A) -> same as down
|
||||||
" l | (A) -> same as j
|
" l | (A) -> same as j
|
||||||
" <Left> | (A) -> same as Up
|
" <Left> | (A) -> same as Up
|
||||||
" h | (A) -> same as k
|
" h | (A) -> same as k
|
||||||
"
|
"
|
||||||
" (help)
|
" (help)
|
||||||
" q | (A) -> close the dialog
|
" q | (A) -> close the dialog
|
||||||
" ?? | (A) -> close the dialog
|
" ?? | (A) -> close the dialog
|
||||||
" ?> | (A) -> close the dialog
|
" ?> | (A) -> close the dialog
|
||||||
" ?< | (A) -> close the dialog
|
" ?< | (A) -> close the dialog
|
||||||
"
|
"
|
||||||
" (markdown)
|
" (markdown)
|
||||||
" <F8> | (A) -> show heading TOC instead of the taglist
|
" <F8> | (A) -> show heading TOC instead of the taglist
|
||||||
"
|
"
|
||||||
" (markdown toc)
|
" (markdown toc)
|
||||||
" <LClick> | (A) -> left click + left justify the cursor
|
" <LClick> | (A) -> left click + left justify the cursor
|
||||||
" <MClick> | (A) -> same as the left click
|
" <MClick> | (A) -> same as the left click
|
||||||
" <RClick> | (A) -> same as the left click
|
" <RClick> | (A) -> same as the left click
|
||||||
" <LClick><LClick> | (A) -> select heading to edit
|
" <LClick><LClick> | (A) -> select heading to edit
|
||||||
" <Space> | (A) -> select heading but remain in toc
|
" <Space> | (A) -> select heading but remain in toc
|
||||||
" <Left> | (A) -> up
|
" <Left> | (A) -> up
|
||||||
" <Right> | (A) -> down
|
" <Right> | (A) -> down
|
||||||
" h | (A) -> j
|
" h | (A) -> j
|
||||||
" l | (A) -> k
|
" l | (A) -> k
|
||||||
"
|
"
|
||||||
" (vimdiff)
|
" (vimdiff)
|
||||||
" <Leader><> | (N) -> update differences
|
" <Leader><> | (N) -> update differences
|
||||||
" <Leader>>< | (N) -> update differences
|
" <Leader>>< | (N) -> update differences
|
||||||
" <Leader>> | (N) -> replace diff in other pane with current pane
|
" <Leader>> | (N) -> replace diff in other pane with current pane
|
||||||
" <Leader<< | (N) -> replace diff in current pane with other pane
|
" <Leader<< | (N) -> replace diff in current pane with other pane
|
||||||
"
|
"
|
||||||
" (vimfiler)
|
" (vimfiler)
|
||||||
" <LClick> | (A) -> left click + left justify the cursor
|
" <LClick> | (A) -> left click + left justify the cursor
|
||||||
" <MClick> | (A) -> same as the left click
|
" <MClick> | (A) -> same as the left click
|
||||||
" <RClick> | (A) -> same as the left click
|
" <RClick> | (A) -> same as the left click
|
||||||
" <LClick><LClick> | (A) -> edit selected file
|
" <LClick><LClick> | (A) -> edit selected file
|
||||||
" <Right> | (A) -> map to l, which opens a directory
|
" <Right> | (A) -> map to l, which opens a directory
|
||||||
" <Left> | (A) -> map to h, which goes up one directory
|
" <Left> | (A) -> map to h, which goes up one directory
|
||||||
" ' | (A) -> edit the selected file
|
" ' | (A) -> edit the selected file
|
||||||
" n | (A) -> start editing a new file
|
" n | (A) -> start editing a new file
|
||||||
"
|
"
|
||||||
|
|
||||||
|
"DISABLED DEFAULT MAPPING: UNSET SHORTCUTS {{{
|
||||||
|
noremap > <Nop>
|
||||||
|
noremap < <Nop>
|
||||||
|
"}}}
|
||||||
|
|
||||||
"ALIASES: COMMAND SHORTCUTS {{{
|
"ALIASES: COMMAND SHORTCUTS {{{
|
||||||
cabbrev <expr><silent> GitLog ':Extradite<CR>:wincmd x<CR>:wincmd j<CR>:resize 10<CR>'
|
cabbrev <expr><silent> GitLog ':Extradite<CR>:wincmd x<CR>:wincmd j<CR>:resize 10<CR>'
|
||||||
cabbrev <expr><silent> gitlog ':Extradite<CR>:wincmd x<CR>:wincmd j<CR>:resize 10<CR>'
|
cabbrev <expr><silent> gitlog ':Extradite<CR>:wincmd x<CR>:wincmd j<CR>:resize 10<CR>'
|
||||||
|
@ -335,7 +342,7 @@
|
||||||
nnoremap <silent><expr> <A-n> ':tabnext<CR>'
|
nnoremap <silent><expr> <A-n> ':tabnext<CR>'
|
||||||
nnoremap <silent><expr> <A-p> ':tabprev<CR>'
|
nnoremap <silent><expr> <A-p> ':tabprev<CR>'
|
||||||
nnoremap <silent><expr> <A-t> ':tabnew<CR>'
|
nnoremap <silent><expr> <A-t> ':tabnew<CR>'
|
||||||
nnoremap <silent><expr> <A-f> ':VimFiler -tab -project<CR>'
|
nnoremap <silent><expr> <A-c> ':VimFiler -tab -project<CR>'
|
||||||
nnoremap <silent><expr> <A-d> ':VimFiler -tab -project -double<CR>'
|
nnoremap <silent><expr> <A-d> ':VimFiler -tab -project -double<CR>'
|
||||||
"}
|
"}
|
||||||
|
|
||||||
|
@ -444,9 +451,11 @@
|
||||||
vnoremap <Backspace> "_x
|
vnoremap <Backspace> "_x
|
||||||
|
|
||||||
"formatting options to apply to the whole document
|
"formatting options to apply to the whole document
|
||||||
noremap <Leader><C-a> :Autoformat<CR><CR>:echo "The selection has been formatted with :Autoformat"<CR>
|
|
||||||
nnoremap <Leader><C-f> mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
nnoremap <Leader><C-f> mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
||||||
vnoremap <Leader><C-f> mz=`z<CR>:echo "The selection has been formatted"<CR>
|
vnoremap <Leader><C-f> mz=`z<CR>:echo "The selection has been formatted"<CR>
|
||||||
|
nnoremap <Leader><Leader><C-f> :Autoformat<CR><CR>:echo "The document has been formatted with :Autoformat"<CR>
|
||||||
|
nnoremap <silent><expr> <Leader><C-l> ':set tw=79<CR>gggqG:set tw=0<CR>:echo "Document text has been formatted to a width of 79 characters"<CR>'
|
||||||
|
vnoremap <silent><expr> <Leader><C-l> '<Esc>:set tw=79<CR>gvgq:set tw=0<CR>:echo "Selected text has been formatted to a width of 79 characters"<CR>'
|
||||||
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
|
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
|
||||||
nnoremap <silent><expr> <Leader><C-t> ':retab<CR>:noh<CR>:echo "Tabs have been converted to spaces"<CR>'
|
nnoremap <silent><expr> <Leader><C-t> ':retab<CR>:noh<CR>:echo "Tabs have been converted to spaces"<CR>'
|
||||||
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
||||||
|
|
Loading…
Reference in a new issue