Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vimrc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Murukesh Mohanan
vimrc
Commits
1d56ab68
Commit
1d56ab68
authored
Feb 04, 2016
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.cse.iitb.ac.in:murukesh/vimrc
parents
e19d1bc9
718ecf75
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
51 deletions
+42
-51
bundle/YouCompleteMe
bundle/YouCompleteMe
+1
-1
bundle/airline
bundle/airline
+1
-1
bundle/syntastic
bundle/syntastic
+1
-1
bundle/vim-go
bundle/vim-go
+1
-1
bundle/vimtex
bundle/vimtex
+1
-1
undo/.gitignore
undo/.gitignore
+2
-0
vimrc
vimrc
+35
-46
No files found.
YouCompleteMe
@
674db42e
Subproject commit
d05bf551a677ac70d5b6de707a7174a97dccd4d
d
Subproject commit
674db42eefd9b2ac9a3bea92e99acf53d4f95fc
d
airline
@
9d1196f4
Subproject commit
fb76dfbca1fbc4ae5a946835135cb32b72be6a66
Subproject commit
9d1196f40aac7bbef5cec0c9307e80e207a4dfca
syntastic
@
d8af5028
Subproject commit d
1a179d750bd1d136d7f38e69f2c5b8439886de7
Subproject commit d
8af5028ecd541f721dab769479092b643f47a76
vim-go
@
de369ba2
Subproject commit
b85b550c6cf3c838db5990a3b202069964429f05
Subproject commit
de369ba2a1ed2195c5a50dd3a396d3760050d171
vimtex
@
664b7259
Subproject commit
0212c94e31f953378092249bc791eaaa4c5ccb1a
Subproject commit
664b7259ce7b408e1b3affb93f307c0395eb8bbd
undo/.gitignore
0 → 100644
View file @
1d56ab68
*
!.gitignore
vimrc
View file @
1d56ab68
...
...
@@ -53,6 +53,8 @@ set laststatus=2
set wildignore+=*.aux,*.toc,*.pdf
set isfname-==
set display+=lastline
set undofile
set undodir=$HOME/.vim/undo
let g:tex_flavor = "latex"
...
...
@@ -74,33 +76,33 @@ endfunction
command! -nargs=? -complete=help H call s:Help2Url (<f-args>)
noremap
;
:
noremap
,
;
nnoremap
<
:tabp<CR>
nnoremap
>
:tabn<CR>
noremap
<leader>,
:bp<CR>
noremap
<leader>.
:bn<CR>
command!
C
let @/=""
cnoremap
w!!
w !sudo tee >/dev/null %
noremap
<leader>P
"*p
noremap
<leader>p
"+p
noremap
<leader>Y
"*y
noremap
<leader>y
"+y
inoremap
<Down>
<C-o>gj
inoremap
<Up>
<C-o>gk
nnoremap
<Down>
gj
nnoremap
<Up>
gk
noremap
;
:
noremap
,
;
nnoremap
<
:tabp<CR>
nnoremap
>
:tabn<CR>
noremap
<leader>,
:bp<CR>
noremap
<leader>.
:bn<CR>
command!
C
let @/=""
cnoremap
w!!
w !sudo tee >/dev/null %
noremap
<leader>P
"*p
noremap
<leader>p
"+p
noremap
<leader>Y
"*y
noremap
<leader>y
"+y
inoremap
<Down>
<C-o>gj
inoremap
<Up>
<C-o>gk
nnoremap
<Down>
gj
nnoremap
<Up>
gk
execute pathogen#infect()
colorscheme molokai
highlight Normal ctermbg=none
highlight Normal
ctermbg=none
highlight NonText ctermbg=none
highlight Visual ctermbg=DarkGrey
highlight Visual
ctermbg=DarkGrey
" From http://vi.stackexchange.com/questions/258/
autocmd BufWritePre
*.sh
if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
autocmd BufWritePre
*.sh,*.py
if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh
,*.py
if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabClosePreviewOnPopupClose = 1
...
...
@@ -133,23 +135,6 @@ let g:DiffUpdate = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_collect_identifiers_from_tags_files = 1
" if has('cscope')
" set cscopetag cscopeverbose
"
" if has('quickfix')
" set cscopequickfix=s-,c-,d-,i-,t-,e-
" endif
"
" cnoreabbrev csa cs add
" cnoreabbrev csf cs find
" cnoreabbrev csk cs kill
" cnoreabbrev csr cs reset
" " cnoreabbrev css cs show
" cnoreabbrev csh cs help
"
" command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
" endif
if !empty($MAN_PN)
autocmd StdinReadPost * set ft=man | file $MAN_PN
elseif @% == "" && getcwd() == "/tmp"
...
...
@@ -166,15 +151,19 @@ endif
function! FindInPath(name)
" Force creation of new file for paths beginning with ./
if expand('%') !~ '^[.~]\?/'
let path=&path
" Add any extra directories to the normal search path
set path+=~,~/.vim,/etc
" If :find finds a file, then wipeout the buffer that was created for the "new" file
setlocal bufhidden=wipe
exe 'silent keepalt find! '. fnameescape(expand('<afile>'))
" Restore 'path' and 'bufhidden' to their normal values
let &path=path
set bufhidden<
try
let path=&path
" Add any extra directories to the normal search path
set path+=~,~/.vim,/etc
" If :find finds a file, then wipeout the buffer that was created for the "new" file
setlocal bufhidden=wipe
exe 'silent keepalt find! '. fnameescape(expand('<afile>'))
" Restore 'path' and 'bufhidden' to their normal values
let &path=path
set bufhidden<
catch /^Vim\%((\a\+)\)\=:E345/
return 0
endtry
endif
endfunction
autocmd BufNewFile * nested call FindInPath(expand('<afile>'))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment