Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 7 commits
  • 8 files changed
  • 0 commit comments
  • 1 contributor
Showing with 1,335 additions and 2,107 deletions.
  1. +407 −644 doc/NERD_commenter.txt
  2. +4 −4 ftplugin/c_ref.vim
  3. +1 −1 ftplugin/context_envinsert.vim
  4. +81 −83 ftplugin/tex_auctex.vim
  5. +1 −1 ftplugin/tex_envinsert.vim
  6. +1 −1 ftplugin/xml_taginsert.vim
  7. +831 −1,370 plugin/NERD_commenter.vim
  8. +9 −3 vimrc
View
1,051 doc/NERD_commenter.txt
407 additions, 644 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
8 ftplugin/c_ref.vim
@@ -58,16 +58,16 @@ let loaded_crefvim = 1
" the mappings:
if !hasmapto('<Plug>CRV_CRefVimVisual')
- vmap <silent> <buffer> <Leader>cr <Plug>CRV_CRefVimVisual
+ vmap <silent> <buffer> <LocalLeader>cr <Plug>CRV_CRefVimVisual
endif
if !hasmapto('<Plug>CRV_CRefVimNormal')
- nmap <silent> <buffer> <Leader>cr <Plug>CRV_CRefVimNormal
+ nmap <silent> <buffer> <LocalLeader>cr <Plug>CRV_CRefVimNormal
endif
if !hasmapto('<Plug>CRV_CRefVimAsk')
- map <silent> <buffer> <Leader>cw <Plug>CRV_CRefVimAsk
+ map <silent> <buffer> <LocalLeader>cw <Plug>CRV_CRefVimAsk
endif
if !hasmapto('<Plug>CRV_CRefVimInvoke')
- map <silent> <buffer> <Leader>cc <Plug>CRV_CRefVimInvoke
+ map <silent> <buffer> <LocalLeader>cc <Plug>CRV_CRefVimInvoke
endif
vmap <silent> <unique> <script> <Plug>CRV_CRefVimVisual y:call <SID>CRV_CRefVimWord('<c-r>"')<CR>
View
2 ftplugin/context_envinsert.vim
@@ -88,5 +88,5 @@ endfunction
endif
endfunction
-
+
imap <silent> <buffer> <C-L>i <C-r>=ConTeXt_CreateEnv()<cr>
View
164 ftplugin/tex_auctex.vim
@@ -1,14 +1,12 @@
" Vim filetype plugin
" Language: LaTeX
" Maintainer: Michael Goerz <goerz@physik.fu-berlin.de>
-" Last Change: Sat 10/17/09 20:57:45 CEST
+" Last Change: Sat 01/14/12 14:07:28 CET
" "========================================================================="
" Explanation and Customization {{{
let b:AMSLatex = 1
-" prefix for the "Greek letter" macros (For personal macros, it is ';')
-let mapleader = '`'
" Set b:AMSLatex to 1 if you are using AMSlatex. Otherwise, the program will
" attempt to automatically detect the line \usepackage{...amsmath...}
@@ -284,96 +282,96 @@ endfunction
" Greek letters, AucTex style bindings {{{
" No timeout. Applies to mappings such as `a for \alpha
-set notimeout
-
-inoremap <buffer> <Leader><Leader> <Leader>
-inoremap <buffer> <Leader>a \alpha
-inoremap <buffer> <Leader>b \beta
-inoremap <buffer> <Leader>c \chi
-inoremap <buffer> <Leader>d \delta
-inoremap <buffer> <Leader>e \epsilon
-inoremap <buffer> <Leader>f \phi
-inoremap <buffer> <Leader>g \gamma
-inoremap <buffer> <Leader>h \eta
-inoremap <buffer> <Leader>i \iota
-inoremap <buffer> <Leader>k \kappa
-inoremap <buffer> <Leader>l \lambda
-inoremap <buffer> <Leader>m \mu
-inoremap <buffer> <Leader>n \nu
-inoremap <buffer> <Leader>o \omega
-inoremap <buffer> <Leader>p \pi
-inoremap <buffer> <Leader>q \theta
-inoremap <buffer> <Leader>r \rho
-inoremap <buffer> <Leader>s \sigma
-inoremap <buffer> <Leader>t \tau
-inoremap <buffer> <Leader>u \upsilon
-inoremap <buffer> <Leader>v \vee
-inoremap <buffer> <Leader>w \omega
-inoremap <buffer> <Leader>x \xi
-inoremap <buffer> <Leader>y \psi
-inoremap <buffer> <Leader>z \zeta
-inoremap <buffer> <Leader>D \Delta
-inoremap <buffer> <Leader>I \int\limits_{}^{}<Esc>F}i
-inoremap <buffer> <Leader>E \varepsilon
-inoremap <buffer> <Leader>F \Phi
-inoremap <buffer> <Leader>G \Gamma
-inoremap <buffer> <Leader>G \varphi
-inoremap <buffer> <Leader>L \Lambda
-inoremap <buffer> <Leader>N \nabla
-inoremap <buffer> <Leader>O \Omega
-inoremap <buffer> <Leader>P \Pi
-inoremap <buffer> <Leader>Q \Theta
-inoremap <buffer> <Leader>R \varrho
-inoremap <buffer> <Leader>S \Sigma
-inoremap <buffer> <Leader>T \vartheta
-inoremap <buffer> <Leader>Z \sum\limits_{}^{}<Esc>F}i
-inoremap <buffer> <Leader>U \Upsilon
-inoremap <buffer> <Leader>X \Xi
-inoremap <buffer> <Leader>Y \Psi
-inoremap <buffer> <Leader>0 \emptyset
-inoremap <buffer> <Leader>1 \unity
-inoremap <buffer> <Leader>6 \difquo
-inoremap <buffer> <Leader>8 \infty
-inoremap <buffer> <Leader>/ \frac{}{}<Esc>F}i
-inoremap <buffer> <Leader>% \frac{}{}<Esc>F}i
-inoremap <buffer> <Leader>@ \circ
-inoremap <buffer> <Leader>\| \Big\|
-inoremap <buffer> <Leader>= \equiv
-inoremap <buffer> <Leader>\ \setminus
-inoremap <buffer> <Leader>. \cdot
-inoremap <buffer> <Leader>* \times
-inoremap <buffer> <Leader>& \wedge
-inoremap <buffer> <Leader>- \bigcap
-inoremap <buffer> <Leader>+ \bigcup
+set notimeout
+
+inoremap <buffer> `` `
+inoremap <buffer> `a \alpha
+inoremap <buffer> `b \beta
+inoremap <buffer> `c \chi
+inoremap <buffer> `d \delta
+inoremap <buffer> `e \epsilon
+inoremap <buffer> `f \phi
+inoremap <buffer> `g \gamma
+inoremap <buffer> `h \eta
+inoremap <buffer> `i \iota
+inoremap <buffer> `k \kappa
+inoremap <buffer> `l \lambda
+inoremap <buffer> `m \mu
+inoremap <buffer> `n \nu
+inoremap <buffer> `o \omega
+inoremap <buffer> `p \pi
+inoremap <buffer> `q \theta
+inoremap <buffer> `r \rho
+inoremap <buffer> `s \sigma
+inoremap <buffer> `t \tau
+inoremap <buffer> `u \upsilon
+inoremap <buffer> `v \vee
+inoremap <buffer> `w \omega
+inoremap <buffer> `x \xi
+inoremap <buffer> `y \psi
+inoremap <buffer> `z \zeta
+inoremap <buffer> `D \Delta
+inoremap <buffer> `I \int\limits_{}^{}<Esc>F}i
+inoremap <buffer> `E \varepsilon
+inoremap <buffer> `F \Phi
+inoremap <buffer> `G \Gamma
+inoremap <buffer> `G \varphi
+inoremap <buffer> `L \Lambda
+inoremap <buffer> `N \nabla
+inoremap <buffer> `O \Omega
+inoremap <buffer> `P \Pi
+inoremap <buffer> `Q \Theta
+inoremap <buffer> `R \varrho
+inoremap <buffer> `S \Sigma
+inoremap <buffer> `T \vartheta
+inoremap <buffer> `Z \sum\limits_{}^{}<Esc>F}i
+inoremap <buffer> `U \Upsilon
+inoremap <buffer> `X \Xi
+inoremap <buffer> `Y \Psi
+inoremap <buffer> `0 \emptyset
+inoremap <buffer> `1 \unity
+inoremap <buffer> `6 \difquo
+inoremap <buffer> `8 \infty
+inoremap <buffer> `/ \frac{}{}<Esc>F}i
+inoremap <buffer> `% \frac{}{}<Esc>F}i
+inoremap <buffer> `@ \circ
+inoremap <buffer> `\| \Big\|
+inoremap <buffer> `= \equiv
+inoremap <buffer> `\ \setminus
+inoremap <buffer> `. \cdot
+inoremap <buffer> `* \times
+inoremap <buffer> `& \wedge
+inoremap <buffer> `- \bigcap
+inoremap <buffer> `+ \bigcup
inoremap <buffer> `( \left( \right)<++><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>
inoremap <buffer> `[ \left[ \right]<++><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>
imap <buffer> <C-L>o \Op{}
imap <buffer> <C-L>2 \sqrt{}
imap <buffer> <C-L>k \Ket{}
-imap <buffer> <C-L>h \hat{}
-imap <buffer> <C-L>v \vec{}
+imap <buffer> <C-L>h \hat{}
+imap <buffer> <C-L>v \vec{}
nmap <silent> <buffer> <LocalLeader>o ysiwf\Op{<CR>
vmap <silent> <buffer> <LocalLeader>o sf\Op{<CR>
-imap <buffer> <C-L>e \emph{}
-imap <buffer> <C-L>t \text{}
+imap <buffer> <C-L>e \emph{}
+imap <buffer> <C-L>t \text{}
nmap <silent> <buffer> <LocalLeader>e ysiwf\emph{<CR>
vmap <silent> <buffer> <LocalLeader>e sf\emph{<CR>
inoremap <buffer> {} {}<Left>
-inoremap <buffer> () ()<Left>
-inoremap <buffer> $$ $$<Left>
-inoremap <buffer> <Leader>< \leq
-inoremap <buffer> <Leader>> \geq
-inoremap <buffer> <Leader>, \nonumber
-inoremap <buffer> <Leader>: \cdots
-inoremap <buffer> <Leader>~ \tilde{}<Left>
-inoremap <buffer> <Leader>^ \op{}<Left>
-inoremap <buffer> <Leader>; \dot{}<Left>
-inoremap <buffer> <Leader>_ \bar{}<Left>
-inoremap <buffer> <Leader><C-E> \exp\left(\right)<Esc>F(a
-inoremap <buffer> <Leader><C-L> \lim_{}<Left>
-inoremap <buffer> <Leader><Up> \uparrow
-inoremap <buffer> <Leader><Down> \downarrow
-inoremap <buffer> <Leader><Right> \longrightarrow
+inoremap <buffer> () ()<Left>
+inoremap <buffer> $$ $$<Left>
+inoremap <buffer> `< \leq
+inoremap <buffer> `> \geq
+inoremap <buffer> `, \nonumber
+inoremap <buffer> `: \cdots
+inoremap <buffer> `~ \tilde{}<Left>
+inoremap <buffer> `^ \op{}<Left>
+inoremap <buffer> `; \dot{}<Left>
+inoremap <buffer> `_ \bar{}<Left>
+inoremap <buffer> `<C-E> \exp\left(\right)<Esc>F(a
+inoremap <buffer> `<C-L> \lim_{}<Left>
+inoremap <buffer> `<Up> \uparrow
+inoremap <buffer> `<Down> \downarrow
+inoremap <buffer> `<Right> \longrightarrow
inoremap <buffer> `<Left> \leftarrow
inoremap <buffer> `<C-F> \to
View
2 ftplugin/tex_envinsert.vim
@@ -83,5 +83,5 @@ endfunction
endif
endfunction
-
+
imap <silent> <buffer> <C-L>i <C-r>=LATEX_CreateEnv()<cr>
View
2 ftplugin/xml_taginsert.vim
@@ -73,5 +73,5 @@ endfunction
imap <silent> <buffer> <C-L>i <C-r>=XML_CreateTag()<cr>
-nmap <silent> <buffer> <leader>i i<C-r>=XML_CreateTag()<cr>
+nmap <silent> <buffer> <LocalLeader>i i<C-r>=XML_CreateTag()<cr>
View
2,201 plugin/NERD_commenter.vim
831 additions, 1,370 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
12 vimrc
@@ -11,8 +11,16 @@ set ttymouse=xterm2
nnoremap ' `
nnoremap ` '
+" Leader keys
+let mapleader = ","
+let g:mapleader = ","
+let maplocalleader = "\\"
+let g:maplocalleader = "\\"
+
" pastetoggle
-set pastetoggle=<F1>
+set pastetoggle=<C-L>p
+nnoremap <Leader>p :set invpaste<CR>
+
" Up/down, j/k key behaviour
" -- Changes up/down arrow keys to behave screen-wise, rather than file-wise.
@@ -238,8 +246,6 @@ if exists("*strftime")
endif
" abbreviations / commands
-command Tidy !tidy -config ~/.vim/scripts/tidy/fragment.prf
-command Lipsum r!~/.vim/scripts/lipsum.pl
command German set spell spelllang=de_20
command English set spell spelllang=en
cabbr AB 'a,'b

No commit comments for this range

Something went wrong with that request. Please try again.