-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·54 lines (47 loc) · 1.37 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
" My VI/VIM Settings
set nocompatible " For VIM cool things.
syntax on " Turn syntax colors on.
set background=dark " Use friendly colors for dark screens.
set number " Show line numbers.
set showmatch " Show matching brackets.
set tabstop=4 " Use tabs with the size of 4
set shiftwidth=4 " Use tabs sizes of 4 while move bunch of code.
set expandtab " Use spaces not tabs.
set smarttab " Use spaces not tabs.
set spell " Spell checking.
set mouse=a " Mouse support!
set nobackup " No backup files
set nowritebackup " No backup files
set noswapfile " No swap files
" Mapping
" Tabs Tabs This is the only way to may sue that I can get this to work the way that I want to
map <C-T> <ESC>:tabe<CR>
" CIS Skeleton
map <F6> <F4><ESC><F5>
map <F7> <F4><ESC><F3>
" Better movemet
" J K
map j gj
map k gk
" Up Down
map <UP> g<UP>
map <DOWN> g<DOWN>
" Show lines over 80 and a line.
set colorcolumn=81
map <silent> <END> <ESC>:set cc=0<CR>
map <silent> <HOME> <ESC>:set cc=81<CR>
" Java Comment
abb ncom <TAB>/**<ESC>o<TAB> *<ESC>o<TAB> */
" C++ Skeleton.
map <F5> o#include <iostream>
\<CR>
\<CR>using namespace std;
\<CR>
\<CR>int main() {
\<CR><TAB>return 0;
\<CR>}
" Java Skeleton
map <F3> opublic class <ESC> "=expand("%") <CR>PkJA<ESC>d4hdlA {
\<CR><TAB>public static void main(String[] args) {
\<CR><TAB>}
\<CR>}