Line toggling Vim not working need a linux guru

ally_ukally_uk Member Posts: 1,146 ■■■■□□□□□□
centos 7 box  my vimrc post is below, I have a option that is supposed to allow me to press ctrl+N to trigger line numbering the trouble is it doesn't appear to be working.

Any ideas gods of linux?

1                                                                                                                                                  
  2 "####################### VIM Configuration ###############################"
  3 set number
  4 nmap <C-N> :set invnumber!<CR>
  5 syntax enable
  6 set nocompatible        " Use Vim defaults (much better!)
  7 set bs=indent,eol,start         " allow backspacing over everything in insert mode
  8 set viminfo='20,\"50    " read/write a .viminfo file, don't store more
  9                         " than 50 lines of registers
 10 set history=50          " keep 50 lines of command line history
 11 set ruler               " show the cursor position all the time
 12 colorscheme darkblue
 13 set cursorline
 14
 15 highlight comment ctermfg=LightCyan
 16 "##########################################################################"



Microsoft's strategy to conquer the I.T industry

" Embrace, evolve, extinguish "

Comments

  • yoba222yoba222 Senior Member Member Posts: 1,198 ■■■■■■■■□□
    Try running 
    $ source .vimrc 
    and see where the syntax error is.
    Another approach would be to start with nothing but an empty file and only the line 
    set number
    to see if numbering works. Then add line-by-line until it breaks.

    A+, Network+, CCNA, LFCS,
    Security+, eJPT, CySA+, PenTest+,
    Cisco CyberOps, GCIH, VHL,
    In progress: OSCP
Sign In or Register to comment.