Vimrc: set breakindent

This commit is contained in:
Kolan Sh 2014-06-27 00:26:07 +04:00
parent a6968146cf
commit 19c356883c
2 changed files with 32 additions and 0 deletions

1
.vimrc
View File

@ -19,6 +19,7 @@ set backspace=indent,eol,start
color backbone color backbone
set number set number
nmap <F6> :set invlist<cr> nmap <F6> :set invlist<cr>
set breakindent " https://www.linux.org.ru/forum/general/10615635?lastmod=1403800233259
" Setup for the GNU coding format standard " Setup for the GNU coding format standard
function! GnuIndent() function! GnuIndent()

View File

@ -0,0 +1,31 @@
#include <iostream>
using namespace std;
class A1 {
public:
A1 () {
cout << "A1() called" << endl;
}
virtual ~A1 () { // won't be called if non-virtual
cout << "~A1() called" << endl;
}
};
class A2 : public A1 {
public:
A2 () {
cout << "A2() called" << endl;
}
~A2 () {
cout << "~A2() called" << endl;
}
};
int main (int argc, char *argv[])
{
A1 *ap = new A2();
delete ap;
}