8
else if( d && ( (d <= b && d <= s) || (!b && !s) )   smallest = d

Consider this piece of code of C++. Can we have bracket matching (highlighting opening bracket when cursor on closing bracket & vice versa)?

muru
  • 207,228
owsmmj
  • 301
  • 2
  • 7

1 Answers1

10
set brackets ""')>]}"
set matchbrackets "(<[{)>]}"

Update ~/.nanorc (or perhaps /etc/nanorc) with these lines and it works like a charm.

When on any bracket press Meta] (often this will be Alt]) and there you go to the other paired bracket.

Connor McCormick
  • 167
  • 1
  • 1
  • 8
owsmmj
  • 301
  • 2
  • 7