Because of this konjac Konjac Noip character explosion, can go to winter camp, so ready to start practicing using Linux under the Ide:vim
With the help of Dalao DTZ, I installed vim and made the initial configuration.
However........ It's so hard to use, it's not the same with Devcpp.
Can not use the Clipboard, not with the mouse, but also to play so long compile commands, look at the uncomfortable ~ ~
So, I wrote this configuration file.
First, there are some very basic things:
1 ColorScheme Desert 2 Set tabstop=43 set softtabstop=44 set shiftwidth=45 Set backspace=26 Set number
This code is used to set the code highlighting, indentation size, and so on data. And then the point is coming ~ ~
1 Set mouse=a23map! ' <esc>45on6set cindent7set Wildmenu 8 Set Hlsearch 9 Set AI
Where the first row of Set mouse is enabled with the mouse. That is, the mouse can move the cursor (very good, this operation)
The third line of map! is a map that maps "'" to the ESC key, and if you want to switch the command line, then your hand doesn't have to move that far.
Those things below are set by Dalao DTZ, not yet studied thoroughly
1Vmap <C-c>"+y2 Map! <C-v> <esc>"+pi3 Map! <C-r> <esc><C-R>I4 Map! <C-z> <esc>UI5 Map! <C-s> <esc>:update<CR>I6 Map! <C-w> <esc>:Exit<CR>I7 8Vmap <backspace> <delete>
Where Vmap represents the enable mapping in the selected mode. The purpose of the VMAP mapping I set is to copy the code in the selected range and delete the data in the selected range.
The rest is in normal (that is, normal editing mode), set Ctrl-v to the vim under the paste, CTRL-Z/R set to Vim under the Undo/redo, ctrl-s for saving, ctrl+w to close the file.
Ps:ctrl-s has a definition under VIM, to avoid conflicts, we have to block out the original settings. In the root directory, write the following configuration in. BASHRC:
1 Stty-ixon
But it seems like there's still a compile, run, Debug.
Map! <F9> <esc>:update<cr>:call compilerungpp () <CR>Map<F9>: Update<cr>:call compilerungpp () <CR>func!compilerungpp () exec"!g++-g-o%<%"EndfuncMap! <F10> <esc>:call rungpp () <CR>Map<F10>: Call RUNGPP () <CR>func!rungpp () exec"! ./%<"EndfuncMap! <F5> <esc>:call rungdb () <CR>Map<F5>: Call Rungdb () <CR>func!rungdb () exec"!gdb%<"Endfunc
I was exactly in accordance with the Devcpp shortcut key configuration, press F9 compile, F10 run, F5 start debugging. The view results of these three operations, input, are run in the IDE.
Because I have limited technology and some inherent limitations, debugging still has to enter the GDB command.
That's about it. (Configuration really exhausted me)
In fact, there are some orders I have not been configured, such as CTRL + a full selection of only half, ctrl+x cut completely did not realize.
Enclose the complete code:
ColorScheme Desert
Set tabstop=4
Set softtabstop=4
Set shiftwidth=4
Set backspace=2
Set number
Set Mouse=a
Syntax on
Set Cindent
Set Wildmenu
Set Hlsearch
Set AI
map! ' <esc>
Vmap <C-c> "+y
map! <C-v> <esc> "+pi
map! <C-r> <esc><c-r>i
map! <C-z> <esc>ui
map! <C-s> <esc>:update<cr>i
map! <C-w> <esc>:exit<cr>i
map! <C-a> <ESC>GGVG
Vmap <backspace> <delete>
map! <F9> <esc>:update<cr>:call compilerungpp () <CR>
Map <F9>: Update<cr>:call compilerungpp () <CR>
func! COMPILERUNGPP ()
Exec "!g++-g-o%<%"
Endfunc
map! <F10> <esc>:call rungpp () <CR>
Map <F10>: Call RUNGPP () <CR>
func! RUNGPP ()
EXEC "! ./%<"
Endfunc
map! <F5> <esc>:call rungdb () <CR>
Map <F5>: Call Rungdb () <CR>
func! Rungdb ()
Exec "!gdb%<"
Endfunc
Vim burst change (how to make vim look like devc++)