Skip to content

Commit eef90de

Browse files
Added standards, the hotkey for next occurrences, the debug make
1 parent 8cbc333 commit eef90de

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.vimrc

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" Author: Vladislav Belov
2-
" Last update: 22.03.2016
2+
" Last update: 19.03.2017
33

44
" User interface
55
syntax on
@@ -19,6 +19,7 @@ set number
1919
set wildmenu
2020
set lazyredraw
2121
set backspace=indent,eol,start
22+
set whichwrap=<,>,h,l,[,]
2223

2324
" Search
2425
set ignorecase
@@ -57,8 +58,10 @@ set makeprg=make
5758
" Python
5859
au FileType python noremap <buffer> <F10> :!python %<cr>
5960
" C++
60-
au FileType cpp setlocal makeprg=g++\ -o\ %:p:.:r\ %:p:.\ -std=c++11\ -O2\ -Wall\ -Wextra\ -DHOME
61+
au FileType cpp setlocal makeprg=g++\ -o\ %:p:.:r\ %:p:.\ -std=c++14\ -O2\ -Wall\ -Wextra\ -pedantic\ -DHOME
6162
au FileType cpp noremap <F5> :!gdb %:p:r<cr>
63+
au FileType cpp noremap <F7> :!g++ -g -o %:p:.:r %:p:. -std=c++11 -O2 -Wall -Wextra -pedantic -DHOME<cr>
64+
au FileType cpp noremap <F8> :!g++ -g -o %:p:.:r %:p:. -std=c++14 -O2 -Wall -Wextra -pedantic -DHOME<cr>
6265
au FileType cpp noremap <F9> :make<cr>
6366
au FileType cpp noremap <buffer> <F10> :!%:p:r<cr>
6467
@@ -72,8 +75,11 @@ set smartindent
7275

7376
" Key maps
7477
nmap <F2> :w<cr>
75-
vmap <F2> <esc>:w<cr>i
78+
vmap <F2> <esc>:w<cr>v
7679
imap <F2> <esc>:w<cr>i
80+
nmap <F3> *
81+
vmap <F3> <esc>*v
82+
imap <F3> <esc>*i
7783
nmap <F9> :make<cr>
7884
imap <C-d> <esc>yypi
7985
inoremap <C-space> <C-x><C-o>

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Vladislav Belov
3+
Copyright (c) 2015-2017 Vladislav Belov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)