Paste my vimrc and VIM Effects

Source: Internet
Author: User
Tags egrep

Paste my vimrc and it looks really eye-catching. We have been busy configuring VIM for the past few days. This editor is so charming. Although emacs is powerful, it is still highly efficient to think about it. The reason is as follows: emacs is extended through Lisp, And the scalability is almost infinite, but there is no mode. You can just add another pedal. In fact, he also needs to input commands, which are essentially the same. VIM also has its own script platform and can be expanded, but its scalability is not as good as emacs. It is too much trouble to recompile it when it is integrated with gdb. The plug-in snipmate I used in the last two days has made me really excited for a long time. Suddenly I had the urge to write code. No, it should be the impulse to write snippet. My God, it was wonderful to write a program. VIM's Automatic completion is fine. The SuperTab plug-in has been removed because of the conflict between TAB and my beloved snippet. I also changed the auto-completion plug-in, added a toggle function key, and bound it to F8. When a conflict or automatic completion is not required, I shut down the plug-in. With Automatic completion, SuperTab is no longer needed. Automatic completion + snippet is basically enough.

I found the intelliisense plug-in a circle on the Internet and found one. The result is for windows only. It is sad that it has not been transplanted to linux. I am very impulsive to write one. Unfortunately, my primary focus is to publish a small paper and prepare for graduation. Ah, it's really interesting in the linux World.

I 've tried a lot of VIM colorscheme, and finally I liked this famous Community version of ps_color. After reading it for a long time, it was quite comfortable, and there was almost no difference in the color of the terminal and GUI.

Hey, there are too many interesting things available on the Internet. I am very interested and have limited time. What should I do ......

1

Set

Nocompatible

2

Set

Backspace

= 2
3

Set

Autoindent

4

Set

Smartindent

5

Set

Cindent

6

Set

Nu

7

Set

Fileformats

= Unix,

Dos,

Mac
8

Set

Enc

= UTF-8
9

Set

Fileencodings

= Ucs-bom,

UTF-8,

Gb18030,

Big5,

Cp936,

Shift-jis
10

Set

Autoread

11

Set

Mouse

=
12

Set

Shiftwidth

= 8
13

Set

Ruler

14

Set

Ignorecase

15

Set

Incsearch

16

Set

Showmatch

17

18

Syntax

Enable

19

Syntax

On

20

"Colorscheme desert

21

"Colorscheme darkblue

22

"Colorscheme torte

23

If

! Has

(

"Gui_running"

)

24

Set

T_Co

= 256
25

Endif

26

"Set background = light gives a different style, feel free to choose between them.

27

Set

Background

= Dark
28

Let

Psc_style =

'Warm'

29

Colors

Peaksea
30

31

Let

Tlist_Show_One_File =

1

32

Let

Tlist_Exit_OnlyWindow =

1

33

Let

G: winManagerWindowLayout =

'Fileexplorer | taglist'

34

35

Filetype

Indent

On

36

Filetype

Plugin

On

37

Filetype

Plugin

Indent

On

38

Set

Completeopt

= Longest,

Menu
39

40

Let

G: miniBufExplMapCTabSwitchBufs =

1

41

Let

G: miniBufExplMapWindowNavVim =

1

42

Let

G: miniBufExplMapWindowNavArrows =

1

43

44

Source

/Usr/share/vim

/Vim72/ftplugin/man.

Vim

 
45

46

If

! Exists

(

"Autocommands_loaded"

)

47

Let

Autocommands_loaded =

1

48

Autocmd

FileType

Vim set

Tags

+ = ~ /. Vim/tags
49

Autocmd

FileType

Html, xml, htm setl

Mps

+ = <:

>
50

Autocmd

FileType

Php set

Omnifunc

= Phpcomplete # CompletePHP dict

-= ~ /. Vim/phpfunclist.txt dict

+ = ~ /. Vim/phpfunclist.txt
51

Autocmd

BufEnter

*: Syntax

Sync

Fromstart

52

Autocmd

BufUnload

*: Syntax

Sync

Fromstart

53

Endif

54

55

"Defart setting is that supertab was disabled.

56

"Let g: supertabdefacomplecompletion =

"<C-X> <C-O>"

57

58

"

Map keys:

59

Nmap

Wm: WMToggle <

Cr

>

60

61

Noremap

<

Silent

>

<

F3

>

: Egrep <

CR

>

62

Inoremap

<

Silent

>

<

F3

>

<

Esc

>

: Egrep <

CR

>

63

64

Noremap

<

F2

>

<

Esc

>

: Calendar <

CR

>

65

Inoremap

<

F2

>

<

ESC

>

: Calendar <

Cr

>

66

67

Noremap

<

F4

>

: Source ~ /. Vimrc <

Cr

>

68

Inoremap

<

F4

>

<

ESC

>

: Source ~ /. Vimrc <

Cr

>

A
69

70

Inoremap

<

F7

>

<

ESC

>

: Read! Date <

CR

>

KJ $
71

72

Noremap

<

F12

>

: A <

CR

>

73

Inoremap

<

F12

>

<

Esc

>

: A <

CR

>

A
74

"<F8> is used for turn on/off the acp which defined in plugin/acp. vim.

75

76

Noremap

<

C-F8

>

: Make <

CR

>

: Cw <

CR

>

77

Inoremap

<

C-F8

>

<

ESC

>

: Make <

Cr

>

: CW <

Cr

>

78

79

Set

Tags

+ = ~ /. Vim/tags/CPP. tags
80

Set

Tags

+ = ~ /. Vim/tags/glib. tags
81

Set

Tags

+ = ~ /. Vim/tags/libc. tags
82

Set

Tags

+ = ~ /. Vim/tags/susv2.tags
83

84

"For bashrc:

85

"Alias ctags = 'ctags -- c ++-kinds = + p -- fields = + ialS -- extra = + Q'

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.