-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·91 lines (75 loc) · 2.53 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
set nocompatible
set hidden
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tomtom/tcomment_vim'
Plugin 'tpope/vim-surround'
" Plugin 'scrooloose/syntastic'
Plugin 'suan/vim-instant-markdown'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
Plugin 'KabbAmine/vCoolor.vim'
Plugin 'tmhedberg/matchit'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'xuhdev/vim-latex-live-preview'
Plugin 'vim-ctrlspace/vim-ctrlspace'
" Plugin 'davidhalter/jedi-vim'
Plugin 'vimwiki/vimwiki'
call vundle#end()
set noundofile
set nobackup
set noswapfile
"Indent settings
set shiftwidth=4
set tabstop=4
set softtabstop=4
set cindent
set autoindent
filetype plugin indent on
let g:indent_guides_enable_on_vim_startup = 1
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
let g:html_indent_inctags = "html,body,head,tbody"
let g:html_indent_autotags = "th,td,tr,tfoot,thead"
"Number line settings
set relativenumber
set number
set numberwidth=5
highlight LineNr term=bold cterm=NONE ctermbg=0 ctermfg=Grey
set wrap
set linebreak
let g:ctrlp_map = '<leader>p'
let g:ctrlp_working_path_mode = 'ra'
let maplocalleader = ","
set hlsearch
map <leader>n :NERDTreeToggle<CR>
nnoremap <c-l> :nohlsearch<CR>:echo "Search Cleared"<CR>
" set statusline+=%*
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" let g:syntastic_python_checkers = ['pylint --include-naming-hint']
let g:instant_markdown_slow = 1
let g:instant_markdown_autostart = 0
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
map <leader>md :InstantMarkdownPreview<CR>
imap <leader><Enter> <Esc>o
map <leader>/ gcc
inoremap <leader><Space> <Esc>/<++><Enter>"_c4l
" HTML Mappings
autocmd FileType html inoremap <leader>b <b></b><Space><++><Esc>FbT>i
" C Mappings
autocmd FileType c inoremap <leader>i #include<><Enter><Enter><++><Esc>/<><Enter>a
autocmd FileType c nnoremap [20~ :w<CR>:!clear<CR>:!gcc<Space>%<Space>&&<Space>./a.out<CR>
" C++ Mappings
autocmd FileType cpp inoremap <leader>i #include<><Enter><Enter><++><Esc>/<><Enter>a
autocmd FileType cpp nnoremap [20~ :w<CR>:!clear<CR>:!g++<Space>%<Space>&&<Space>./a.out<CR>
" Python Mappings
autocmd FileType python nnoremap [20~ :w<CR>:!clear<CR>:!python<Space>%<CR>
autocmd FileType python nnoremap [19~ :w<CR>:!clear<CR>:!python<Space>-i<Space>%<CR>